diff options
author | Will Dietz <w@wdtz.org> | 2018-02-28 15:03:54 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-02-28 16:34:34 -0600 |
commit | e89d02bf031277bd81a8ce255f49d352763e5c71 (patch) | |
tree | 58ad2f2372e542b716c879913d7daf6b37987ddb /src/libexpr/primops | |
parent | 05cb8e5c5a954fa999ac5156cdf19148a05fdb2b (diff) |
fetchGit: use "HEAD" as default ref
Diffstat (limited to 'src/libexpr/primops')
-rw-r--r-- | src/libexpr/primops/fetchGit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchGit.cc b/src/libexpr/primops/fetchGit.cc index 2e3e2634d..9fc0d4662 100644 --- a/src/libexpr/primops/fetchGit.cc +++ b/src/libexpr/primops/fetchGit.cc @@ -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); |