You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The reference at "HEAD" could not be instantiated: Reference name cannot start with a dot #1743
@Byron Could this be an issue gix could/should resolve? Looks like this may be related to Windows. Are you familiar with the refs/heads/.invalid file? Assuming that's the actual filename and not an example, looks like it could be an intentionally invalid file that git's plumbing would create?
Just wanted to make you aware. IDK if there's anything that actually should be done on gix's side.
Git marks HEAD with an invalid value when the reftable backend is used to fail older clients early.
Support for this is planned to land in gitoxide before September this year to be Git3 ready.
There is nothing that can be done to workaround it, unless one would want to have a git executable fallback to read refs for these cases. Maybe it's just one call anyway?
There is nothing that can be done to workaround it, unless one would want to have a git executable fallback to read refs for these cases. Maybe it's just one call anyway?
Probably best to just leave it alone, then. It looks like the user was able to fix their issue with git refs migrate --ref-format=files, so perhaps a simple solution could be to detect the error type and offer that as a suggestion?
Probably.
But once the error is detected, it would be as easy to try to use git, but only if onefetch really is only interested in a single ref to keep it easy and fast.
Activity
spenserblack commentedon May 7, 2026
@Byron Could this be an issue gix could/should resolve? Looks like this may be related to Windows. Are you familiar with the
refs/heads/.invalidfile? Assuming that's the actual filename and not an example, looks like it could be an intentionally invalid file that git's plumbing would create?Just wanted to make you aware. IDK if there's anything that actually should be done on gix's side.
Byron commentedon May 7, 2026
Git marks
HEADwith an invalid value when thereftablebackend is used to fail older clients early.Support for this is planned to land in
gitoxidebefore September this year to be Git3 ready.There is nothing that can be done to workaround it, unless one would want to have a
gitexecutable fallback to read refs for these cases. Maybe it's just one call anyway?spenserblack commentedon May 7, 2026
Probably best to just leave it alone, then. It looks like the user was able to fix their issue with
git refs migrate --ref-format=files, so perhaps a simple solution could be to detect the error type and offer that as a suggestion?Byron commentedon May 7, 2026
Probably.
But once the error is detected, it would be as easy to try to use
git, but only ifonefetchreally is only interested in a single ref to keep it easy and fast.