Revert "make fetchgit work when not fetching from master"

This reverts commit 79129b5c16.

This fixes https://github.com/nmattia/naersk/issues/149
This commit is contained in:
Jörg Thalheim 2021-03-03 15:01:25 +00:00 committed by Nicolas Mattia
parent a2a4b60a9e
commit e0fe990b47

View file

@ -108,7 +108,6 @@ rec
url = val.git; url = val.git;
} // lib.optionalAttrs (val ? rev) { } // lib.optionalAttrs (val ? rev) {
rev = val.rev; rev = val.rev;
ref = val.rev;
} // lib.optionalAttrs (val ? branch) { } // lib.optionalAttrs (val ? branch) {
ref = val.branch; ref = val.branch;
} // lib.optionalAttrs (val ? tag) { } // lib.optionalAttrs (val ? tag) {