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

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

    Issue actions