-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
short form of fetchGit assumes master branch exists #4456
Comments
I marked this as stale due to inactivity. → More info |
Switch the master in https://github.com/NixOS/nix/blob/master/src/libfetchers/git.cc#L288 for HEAD? |
I think that's part of it. At least, the proposed fix in #4638 appears to do this. |
This issue blocks building with |
I marked this as stale due to inactivity. → More info |
:) |
#4638 is still active indeed |
Congrats @orbekk on fixing this! 🎉 |
@GuillaumeDesforges Thank you =) |
Describe the bug
The ~short
fetchGit url
form assumes master branch exists, and errors withfatal: couldn't find remote ref refs/heads/master
if it doesn't.Steps To Reproduce
nix-shell -E 'fetchGit https://github.com/abathur/lilgit'
Expected behavior
If it's tractable to look up the HEAD in the remote repo and fetch it, that seems better. But it wouldn't shock me if that's not tractable. :)
nix-env --version
outputnix-env (Nix) 2.4pre20201205_a5d85d0
The text was updated successfully, but these errors were encountered: