-
-
Notifications
You must be signed in to change notification settings - Fork 355
Fetching a Repository with special branch names breaks on Windows #1055
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Thanks for reporting!
The goal here would to figure out why it's not writing straight to packed refs. |
A quick investigation shows that…
So in this case, it's probably these the last two points to adjust and investigate. |
I didn't test this prior to the changes in #1374, but currently the failure, if tested with
|
It's amazing that Git can do it - or does it just ignore the reflog maybe? |
Yeah, with (Attempting to switch to the branch with |
I should acknowledge that this may not be all that must change. We also want to be able to fetch again.
There, the problem is not related to a log. This may be considered more strongly to resemble the original problem description. |
Great! This is quite actionable, even though it's not trivial to implement. After all, I wonder if With more research to understand Git as baseline, one can probably make a good decision there. But with the comment above, it's once again clear that this is more work to get right, probably in many different places then. And with that, I once more wonder if Git has a clever solution for this to also 'do the right thing' instead of just ignoring errors. |
Current behavior 😯
Calling
fetch_only
on Windows for a repository with a branch namedfoo<1.0
fails due to:Expected behavior 🤔
I would expect this to work on Windows, given that
foo<1.0
is a well-formed name according to git's ref naming rules.Steps to reproduce 🕹
PrepareFetch
andfetch_only
forhttps://github.com/calyptobai/gix-fetch-win-fail.git
The text was updated successfully, but these errors were encountered: