I keep getting operations erroring on "error: cann...
# report-bugs
m
I keep getting operations erroring on "error: cannot lock ref 'HEAD': Unable to create '/Users/matt/src/llvm-project/.git/HEAD.lock': File exists." and git gc is apparently holding the lock. Is there a way gt can surpress gc before it begins an operation so it won't be interrupted
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
Hey Matt,
gt
CLI does not have a built-in feature to suppress or disable Git garbage collection before operations. You could clear stale locks at the Git level or consider disabling Git’s auto-GC/maintenance