1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 20:01:15 +02:00

Merge remote-tracking branch 'shlevy/baseNameOf-no-copy'

baseNameOf: Don't copy paths to the store first
This commit is contained in:
Shea Levy 2015-01-29 03:29:09 -05:00
commit 73bf32ce94
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}