aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-11-26 21:45:28 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-11-26 21:45:28 +0100
commit05d9442f68ba906ae50c12deab63fc1b9836b149 (patch)
tree242bc7187de1d57618715fa0258d089270f3b8e3 /src
parent2458270b69b28d17c5a89f7b006e4df550435477 (diff)
builtins.fetchGit: Fix shortRev attribute for dirty trees
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops/fetchTree.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchTree.cc b/src/libexpr/primops/fetchTree.cc
index e6f637a43..d094edf92 100644
--- a/src/libexpr/primops/fetchTree.cc
+++ b/src/libexpr/primops/fetchTree.cc
@@ -39,7 +39,7 @@ void emitTreeAttrs(
// Backwards compat for `builtins.fetchGit`: dirty repos return an empty sha1 as rev
auto emptyHash = Hash(htSHA1);
mkString(*state.allocAttr(v, state.symbols.create("rev")), emptyHash.gitRev());
- mkString(*state.allocAttr(v, state.symbols.create("shortRev")), emptyHash.gitRev());
+ mkString(*state.allocAttr(v, state.symbols.create("shortRev")), emptyHash.gitShortRev());
}
if (input.getType() == "git")