Skip to content

Installation of "commit-msg" hook fails with an error #72

@shirayuki

Description

@shirayuki

Environment

  • Git Extensions 4.0.2.16100
  • Build 25100ec1f7c8da8f798613da74826038af81a50e
  • Git 2.38.1.windows.1
  • Microsoft Windows NT 10.0.22621.0
  • .NET 6.0.13
  • DPI 96dpi (no scaling)
  • Microsoft.WindowsDesktop.App Versions
    Microsoft.WindowsDesktop.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    Microsoft.WindowsDesktop.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issue description

Installation of the "commit-msg" hook fails with the following error:

The remote "gerrit" specified with the "defaultremote" setting in the .gitreview file does not refer to a configured remote.
Either create this remote or change the setting in the .gitreview file.

Running git review -s manually successfully installs the hooks.

Steps to reproduce

Follow the instructions at the following site to clone the MediaWiki repository:
https://www.mediawiki.org/wiki/Gerrit/Tutorial

Expected behavior

The hook is installed without error.

Actual behavior

Fails with the following error:

The remote "gerrit" specified with the "defaultremote" setting in the .gitreview file does not refer to a configured remote.
Either create this remote or change the setting in the .gitreview file.

Did this work in previous version of Gerrit plugin?

No response

Diagnostics

No response

Activity

poupounetjoyeux

poupounetjoyeux commented on Sep 21, 2023

@poupounetjoyeux
Contributor

Hello,

In the .gerritreview file the defaultremote parameter must refer to your remote repository name configured in GE.

I mean you keep the default 'origin' remote name in GE and you have defaultremote=gerrit in the .gitreview file

Changing one of the two should solve your issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @shirayuki@poupounetjoyeux

        Issue actions

          Installation of "commit-msg" hook fails with an error · Issue #72 · gitextensions/GitExtensions.GerritPlugin