1
0
Fork 0

main.nix: add --git-dir for $TIMESTAMP

This commit is contained in:
Astro 2019-04-23 22:25:34 +02:00
parent e75355c6c8
commit bed94f4c85
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ let
'' ''
cp --no-preserve=mode,ownership -R ${./artiq} $out cp --no-preserve=mode,ownership -R ${./artiq} $out
REV=`git --git-dir ${artiqSrc}/.git rev-parse HEAD` REV=`git --git-dir ${artiqSrc}/.git rev-parse HEAD`
TIMESTAMP=`git log -1 --format=%ct` TIMESTAMP=`git --git-dir ${artiqSrc}/.git log -1 --format=%ct`
ARTIQ_SRC_CLEAN=`mktemp -d` ARTIQ_SRC_CLEAN=`mktemp -d`
cp -a ${artiqSrc}/. $ARTIQ_SRC_CLEAN cp -a ${artiqSrc}/. $ARTIQ_SRC_CLEAN
chmod -R 755 $ARTIQ_SRC_CLEAN/.git chmod -R 755 $ARTIQ_SRC_CLEAN/.git