aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/fetchGit.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-02-12 18:23:11 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-02-12 18:23:11 +0100
commit91a6a47b0e98f4114c263ef32895e749639c50ad (patch)
tree47b665ea501291b5c67949fc8418ce6f4d4243f2 /src/libexpr/primops/fetchGit.cc
parent0cd7f2cd8d99071ebfb06a8f0d6a18efed6cd42e (diff)
Improve flake references
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 3027e0f2d..62e9dfc0e 100644
--- a/src/libexpr/primops/fetchGit.cc
+++ b/src/libexpr/primops/fetchGit.cc
@@ -16,7 +16,7 @@ using namespace std::string_literals;
namespace nix {
-std::regex revRegex("^[0-9a-fA-F]{40}$");
+extern std::regex revRegex;
GitInfo exportGit(ref<Store> store, const std::string & uri,
std::optional<std::string> ref, std::string rev,