about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-01-29T08·29-0500
committerShea Levy <shea@shealevy.com>2015-01-29T08·29-0500
commit73bf32ce9400a45f49d5551268f6a611735bdb32 (patch)
tree6b42fa28be7af285d9dfaff86e2f7c7efd86f018 /src
parentde91a42c6ed6f35adae2ca0be6ad9ce556aac335 (diff)
parentc9bd6a1de41eb7f137e628df4a127ac8941ec07d (diff)
Merge remote-tracking branch 'shlevy/baseNameOf-no-copy'
baseNameOf: Don't copy paths to the store first
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 422ec971c9e0..6c30e6d549ec 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -710,7 +710,7 @@ static void prim_pathExists(EvalState & state, const Pos & pos, Value * * args,
 static void prim_baseNameOf(EvalState & state, const Pos & pos, Value * * args, Value & v)
 {
     PathSet context;
-    mkString(v, baseNameOf(state.coerceToString(pos, *args[0], context)), context);
+    mkString(v, baseNameOf(state.coerceToString(pos, *args[0], context, false, false)), context);
 }