diff options
author | Will Dietz <w@wdtz.org> | 2018-02-28T21·03-0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-02-28T22·34-0600 |
commit | e89d02bf031277bd81a8ce255f49d352763e5c71 (patch) | |
tree | 58ad2f2372e542b716c879913d7daf6b37987ddb /src/libexpr/primops/fetchGit.cc | |
parent | 05cb8e5c5a954fa999ac5156cdf19148a05fdb2b (diff) |
fetchGit: use "HEAD" as default ref
Diffstat (limited to 'src/libexpr/primops/fetchGit.cc')
-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 2e3e2634db8f..9fc0d46626dd 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); |