From: Junio C Hamano Date: Sat, 28 Feb 2009 07:58:50 +0000 (-0800) Subject: git-repack: resist stray environment variable X-Git-Tag: v1.6.2.3~6^2~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2478dc84b5fb2617bfab3a8f65f1270de578b94a;p=git.git git-repack: resist stray environment variable The script used $args and $existing without initializing it to empty. It would have been confused by an environment variable the end user had before running it. Signed-off-by: Junio C Hamano --- diff --git a/git-repack.sh b/git-repack.sh index 458a497af..86000151c 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -60,6 +60,7 @@ case ",$all_into_one," in args='--unpacked --incremental' ;; ,t,) + args= existing= if [ -d "$PACKDIR" ]; then for e in `cd "$PACKDIR" && find . -type f -name '*.pack' \ | sed -e 's/^\.\///' -e 's/\.pack$//'`