fetchGit: use "HEAD" as default ref

This commit is contained in:
Will Dietz
2018-02-28 16:34:34 -06:00
parent 05cb8e5c5a
commit e89d02bf03
+1 -1
View File
@@ -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);