Open t-b opened 1 week ago
Hi! Thanks for writing in. I believe the root of this lies upstream in libgit2 which doesn't support negative refspecs https://github.com/libgit2/libgit2/issues/6741.
I do however wonder if the offending area might be replaceable with gitoxide which could resolve the issue.
I'd guess this is a gitoxide issue.
Indeed, the issue is that gitoxide
is not used :), as it does support negative refspecs.
It will probably be a while until I get to this, but maybe it's possible to make this work surgically by only using gix
where absolutely needed to fix this issue.
Thanks both. Nice to hear as well that gitoxide
does support it ;)
Version
0.12.25
Operating System
Windows
Distribution Method
msi (Windows)
Describe the issue
I wanted to open a local repository and got the following error message:
How to reproduce
git clone --depth 1 https://github.com/gitbutlerapp/gitbutler
Add a negative refspec, see https://stackoverflow.com/a/64287272, to the config:
Opening the repo in gitbutler gives the above error message.
I'd guess this is a gitoxide issue.
Expected behavior
No response
Relevant log output