Skip to content

Commit

Permalink
make fetchgit work when not fetching from master
Browse files Browse the repository at this point in the history
This is required so that fetching dependencies from a feature branch is
possible.

See also NixOS/nix#3408
  • Loading branch information
Ekleog authored and nmattia committed Jan 26, 2021
1 parent 79a613f commit 79129b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ rec
url = val.git;
} // lib.optionalAttrs (val ? rev) {
rev = val.rev;
ref = val.rev;
} // lib.optionalAttrs (val ? branch) {
ref = val.branch;
} // lib.optionalAttrs (val ? tag) {
Expand Down

0 comments on commit 79129b5

Please sign in to comment.