"Error: rename ... Access is denied" When Creating a Ticket
blumf opened this issue · comments
Been testing this out. If I make a local git repo, everything seems fine, but if I clone a remote repo, and try to use it I get an error:
(in a Windows command window)
> git clone https://server/git/git_bug_test
> cd git_bug_test
> git-bug user create
Name [me]:
Email [me@fake.com]:
Avatar URL:
bbc5207b0d2ddb8b823d53052a3a77eafc996a03143c3bed99f5841c2438e921
> git-bug add -t "First Bug" -m "Bug number one!"
Error: rename E:\temp\git_bug_test\.git\objects\pack\tmp_obj_2131903459 E:\temp\git_bug_test\.git\objects\e6\9de29bb2d1d6434b8b29ae775ad8c2e48c5391: Access is denied.
I can manually edit/rename the mentioned files just fine, no locks or access limits, so maybe it something else throwing the error with a spurious message?
This bot triages untriaged issues and PRs according to the following rules:
- After 90 days of inactivity, the
lifecycle/stale
label is applied - After 30 days of inactivity since
lifecycle/stale
was applied, the issue is closed
To remove the stale status, you can:
- Remove the
lifecycle/stale
label - Comment on this issue
Also seeing this on Windows. Possibly related to #809 ? i.e. access is denied because Windows considers the file in use?
Also seeing this on Windows. Possibly related to #809 ? i.e. access is denied because Windows considers the file in use?
This seems unrelated to #809, which is focused on the use of parallelization in tests and cleaning up some temporary files created during the tests.
Can you provide more information about your environment when encountering this issue? Do you have the repository open in multiple windows, for example? Are you using Command Prompt, PowerShell, Git Bash (cygwin), or WSL2?