mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
fetchGit: use "HEAD" as default ref
This commit is contained in:
parent
05cb8e5c5a
commit
e89d02bf03
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
|
||||||
ref = "HEAD"s;
|
ref = "HEAD"s;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ref) ref = "master"s;
|
if (!ref) ref = "HEAD"s;
|
||||||
|
|
||||||
if (rev != "" && !std::regex_match(rev, revRegex))
|
if (rev != "" && !std::regex_match(rev, revRegex))
|
||||||
throw Error("invalid Git revision '%s'", rev);
|
throw Error("invalid Git revision '%s'", rev);
|
||||||
|
|
Loading…
Reference in a new issue