about summary refs log tree commit diff
path: root/src/libexpr/primops/fetchGit.cc
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-02-28T21·03-0600
committerWill Dietz <w@wdtz.org>2018-02-28T22·34-0600
commite89d02bf031277bd81a8ce255f49d352763e5c71 (patch)
tree58ad2f2372e542b716c879913d7daf6b37987ddb /src/libexpr/primops/fetchGit.cc
parent05cb8e5c5a954fa999ac5156cdf19148a05fdb2b (diff)
fetchGit: use "HEAD" as default ref
Diffstat (limited to 'src/libexpr/primops/fetchGit.cc')
-rw-r--r--src/libexpr/primops/fetchGit.cc2
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);