We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nix run
master
git+https
Describe the bug
nix run (and presumably other Flake-involving commands) should default to using the default branch for git+https URLs, rather than hard-coding master.
I would guess this behavior comes from
nix/src/libfetchers/git.cc
Line 289 in 5c99ec3
Steps To Reproduce
nix run git+https://...
fatal: couldn't find remote ref refs/heads/master
Expected behavior
The default branch of the remote should be used.
nix-env --version output
nix-env --version
nix-env (Nix) 2.4pre20210707_02dd6bb
The text was updated successfully, but these errors were encountered:
I am not sure if these just use the short form of fetchGit under the hood, but if so this is probably the same underlying issue as #4456
Sorry, something went wrong.
pin-depends
I marked this as stale due to inactivity. → More info
No branches or pull requests
Describe the bug
nix run
(and presumably other Flake-involving commands) should default to using the default branch forgit+https
URLs, rather than hard-codingmaster
.I would guess this behavior comes from
nix/src/libfetchers/git.cc
Line 289 in 5c99ec3
Steps To Reproduce
master
, and nomaster
branchnix run git+https://...
fatal: couldn't find remote ref refs/heads/master
Expected behavior
The default branch of the remote should be used.
nix-env --version
outputnix-env (Nix) 2.4pre20210707_02dd6bb
The text was updated successfully, but these errors were encountered: