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

[NBug] fatal: .git/index: index file open failed: Permission denied #11229

Closed
davidnyquist opened this issue Sep 26, 2023 · 3 comments
Closed

Comments

@davidnyquist
Copy link

Environment

  • Git Extensions 4.1.0.16698
  • Build 1fe52a1
  • Git 2.42.0.windows.2
  • Microsoft Windows NT 10.0.22621.0
  • .NET 6.0.22
  • DPI 96dpi (no scaling)
  • Portable: False

Issue description

Exit code: 128
Command: C:\Program Files\Git\bin\git.exe
Arguments: -c color.ui=never -c diff.submodule=short -c diff.noprefix=false -c diff.mnemonicprefix=false -c diff.ignoreSubmodules=none -c core.safecrlf=false diff --find-renames --find-copies -U1000000 -- "Visual Studio Projects/GitUtility/MainForm.Designer.cs"
Working directory: C:\tmwin\Git\private_repository\dnyquist\

GitExtUtils.ExternalOperationException: fatal: .git/index: index file open failed: Permission denied
 ---> System.Exception: fatal: .git/index: index file open failed: Permission denied
   --- End of inner exception stack trace ---
   at GitCommands.ExecutableExtensions.GetOutputAsync(IExecutable executable, ArgumentString arguments, Byte[] input, Encoding outputEncoding, CommandCache cache, Boolean stripAnsiEscapeCodes) in C:\projects\gitextensions\GitCommands\Git\ExecutableExtensions.cs:line 128
   at GitCommands.GitModule.GetCurrentChangesAsync(String fileName, String oldFileName, Boolean staged, String extraDiffArguments, Encoding encoding, Boolean noLocks) in C:\projects\gitextensions\GitCommands\Git\GitModule.cs:line 2817
   at GitUI.AutoCompletion.CommitAutoCompleteProvider.GetChangedFileTextAsync(GitModule module, GitItemStatus file) in C:\projects\gitextensions\GitUI\AutoCompletion\CommitAutoCompleteProvider.cs:line 161
   at GitUI.AutoCompletion.CommitAutoCompleteProvider.GetAutoCompleteWordsAsync(CancellationToken cancellationToken) in C:\projects\gitextensions\GitUI\AutoCompletion\CommitAutoCompleteProvider.cs:line 57
   at GitUI.SpellChecker.EditNetSpell.<InitializeAutoCompleteWordsTask>b__109_0() in C:\projects\gitextensions\GitUI\SpellChecker\EditNetSpell.cs:line 888
   at Microsoft.VisualStudio.Threading.AwaitExtensions.ExecuteContinuationSynchronouslyAwaiter`1.GetResult()
   at Microsoft.VisualStudio.Threading.AsyncLazy`1.<>c__DisplayClass13_0.<<GetValueAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at Microsoft.VisualStudio.Threading.JoinableTask`1.CompleteOnCurrentThread()
   at GitUI.SpellChecker.EditNetSpell.UpdateOrShowAutoComplete(Boolean calledByUser)
   at GitUI.SpellChecker.EditNetSpell.AutoCompleteTimer_Tick(Object sender, EventArgs e) in C:\projects\gitextensions\GitUI\SpellChecker\EditNetSpell.cs:line 1076
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

this error occurred when the Commit dialog was open and I was about to type in the comment.

Steps to reproduce

Highlighted one of the folders and used the Git Commit dialog. Just I was trying to type in the comment the error message appeared on the screen.

Did this work in previous version of GitExtensions?

No response

Diagnostics

No response

@duplicates-detector-bot
Copy link

Potential duplicates:

  • #10499
  • #10931
  • #11029
  • #11111

@gerhardol
Copy link
Member

Not really an issue in GE, the error message is from Git
Duplicate of #10499
Fixed presentation in #11030 next release
In this scenario the exception can be ignored

@davidnyquist
Copy link
Author

Thank you guys. I look forward to the next release where the bug is fixed.

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

No branches or pull requests

2 participants