about summary refs log tree commit diff
path: root/src/libexpr/primops/fetchgit.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-11-01T20·32+0100
committerEelco Dolstra <edolstra@gmail.com>2017-11-01T20·32+0100
commit212e72c60913c78eb88e347660144b441ea9f72b (patch)
tree537f05c56a8eca8dc9abbe76ea52061f0ce5f00f /src/libexpr/primops/fetchgit.cc
parente026bc3b05ca45c2d855d0a38820034ab4ef3c4c (diff)
Fix build
https://hydra.nixos.org/build/63172338
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 879e3656a25a..4b5ead320c81 100644
--- a/src/libexpr/primops/fetchgit.cc
+++ b/src/libexpr/primops/fetchgit.cc
@@ -56,7 +56,7 @@ GitInfo exportGit(ref<Store> store, const std::string & uri,
         }
     }
 
-    if (!ref) ref = "master";
+    if (!ref) ref = "master"s;
 
     if (rev != "") {
         std::regex revRegex("^[0-9a-fA-F]{40}$");