Skip to content

Error message on Dashboard #63

@vstark

Description

@vstark

Environment

  • Gerrit plugin version: I don't know
  • Git Extensions version: 4.0.1.15887
  • GIT version: 2.39.0
  • OS version: windows 10
  • .NET version: 6.0.12

Issue description

After launch of the Git Extensions application the error message is shown on dashboard (for some reason it pops up twice)
image
Reference:

Steps to reproduce

Open application.
Clean installation.

Expected behavior

There won't be any error

Actual behavior

Stack trace:

File name:   C:\Program Files\Git\bin\git.exe
Arguments:   rev-parse --git-path "hooks"
Working dir: 
Process ID:  21356
Started at:  2023-01-10T09:45:48.9054378+01:00
UI Thread?:  True
Duration:    47,644 ms
Exit code:   GitExtUtils.ExternalOperationException: fatal: not a git repository (or any of the parent directories): .git
 ---> System.Exception: fatal: not a git repository (or any of the parent directories): .git
   --- End of inner exception stack trace ---
   at GitCommands.ExecutableExtensions.GetOutputAsync(IExecutable executable, ArgumentString arguments, Byte[] input, Encoding outputEncoding, CommandCache cache, Boolean stripAnsiEscapeCodes)
   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod, JoinableTaskCreationOptions creationOptions)
   at Microsoft.VisualStudio.Threading.JoinableTaskFactory.Run[T](Func`1 asyncMethod)
   at GitCommands.ExecutableExtensions.GetOutput(IExecutable executable, ArgumentString arguments, Byte[] input, Encoding outputEncoding, CommandCache cache, Boolean stripAnsiEscapeCodes)
   at GitCommands.GitModule.ResolveGitInternalPath(String relativePath)
   at GitExtensions.GerritPlugin.GerritPlugin.GetCommitMessageHookPath(IGitModule gitModule)
   at GitExtensions.GerritPlugin.GerritPlugin.HasValidCommitMsgHook(IGitModule gitModule, Boolean force)
   at GitExtensions.GerritPlugin.GerritPlugin.UpdateGerritMenuItems(Object sender, GitUIEventArgs e)
   at GitUI.GitUICommands.InvokeEvent(IWin32Window ownerForm, EventHandler`1 gitUIEventHandler)
Call stack:  not captured

Did this work in previous version of Gerrit plugin?

Yes, When I was using version 3.

Diagnostics

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions