diff options
-rw-r--r-- | sys/conf/newvers.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index d8573660d196..a2c8c1ccebda 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -83,18 +83,17 @@ git_tree_modified() # git's internal state. The latter case is indicated by an all-zero # destination file hash. - local fifo vcstop_abs + local fifo fifo=$(mktemp -u) mkfifo -m 600 $fifo - vcstop_abs=$(realpath $VCSTOP) $git_cmd --work-tree=${VCSTOP} diff-index HEAD > $fifo & while read smode dmode ssha dsha status file; do if ! expr $dsha : '^00*$' >/dev/null; then rm $fifo return 0 fi - if ! $git_cmd diff --quiet -- "${vcstop_abs}/${file}"; then + if ! $git_cmd --work-tree=${VCSTOP} diff --quiet -- "${file}"; then rm $fifo return 0 fi |