forked from lix-project/lix
Merge pull request #1927 from dtzWill/fix/fetchgit-HEAD
fetchGit: use "HEAD" as default ref instead of "master"
This commit is contained in:
commit
4a000cbb39
|
@ -79,7 +79,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
|
|||
ref = "HEAD"s;
|
||||
}
|
||||
|
||||
if (!ref) ref = "master"s;
|
||||
if (!ref) ref = "HEAD"s;
|
||||
|
||||
if (rev != "" && !std::regex_match(rev, revRegex))
|
||||
throw Error("invalid Git revision '%s'", rev);
|
||||
|
|
Loading…
Reference in a new issue