git-bisect.sh: properly dq $GIT_DIR
Otherwise you would be in trouble if your GIT_DIR has IFS letters in it. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Mar 23, 2007 at 13:24 UTC
12cb8137332e21957195c3af2923c03a8aad5b5a
1 file changed
+1
-1
git-bisect.sh
+1
-1
@@ -141,7 +141,7 @@ bisect_next() {
141
bad=$(git-rev-parse --verify refs/bisect/bad) &&
142
good=$(git-rev-parse --sq --revs-only --not \
143
$(cd "$GIT_DIR" && ls refs/bisect/good-*)) &&
144
- rev=$(eval "git-rev-list --bisect $good $bad -- $(cat $GIT_DIR/BISECT_NAMES)") || exit
144
+ rev=$(eval "git-rev-list --bisect $good $bad -- $(cat "$GIT_DIR/BISECT_NAMES")") || exit
145
if [ -z "$rev" ]; then
146
echo "$bad was both good and bad"
147
exit 1