aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-05 14:37:42 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-05 14:40:01 +0000
commit839f0fe0956cf4434b64e81a0966e780051901ad (patch)
treed7413e1f0bf42a42bfb83490e0e462b6dc8b6066 /src/libexpr
parent03f4fafc27bd9f8def1df6a229a17fc2c3f0e0a0 (diff)
parentb91dc7ebad733f557dd812f285095b700c267fa2 (diff)
Merge remote-tracking branch 'upstream/master' into misc-ca
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops/fetchMercurial.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchMercurial.cc b/src/libexpr/primops/fetchMercurial.cc
index fc2a6a1c2..cef85cfef 100644
--- a/src/libexpr/primops/fetchMercurial.cc
+++ b/src/libexpr/primops/fetchMercurial.cc
@@ -31,7 +31,7 @@ static void prim_fetchMercurial(EvalState & state, const Pos & pos, Value * * ar
// be both a revision or a branch/tag name.
auto value = state.forceStringNoCtx(*attr.value, *attr.pos);
if (std::regex_match(value, revRegex))
- rev = Hash(value, htSHA1);
+ rev = Hash::parseAny(value, htSHA1);
else
ref = value;
}