Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shirayuki opened this issue May 4, 2023 · 1 comment
Open

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

shirayuki opened this issue May 4, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@shirayuki
Copy link

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

@shirayuki shirayuki added the bug Something isn't working label May 4, 2023
@poupounetjoyeux
Copy link
Contributor

poupounetjoyeux commented Sep 21, 2023

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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants