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 <gitster@pobox.com>
Junio C Hamano committed
Feb 27, 2009 at 23:58 UTC
2478dc84b5fb2617bfab3a8f65f1270de578b94a
1 file changed
+1
git-repack.sh
+1
@@ -60,6 +60,7 @@ case ",$all_into_one," in
60
args='--unpacked --incremental'
61
;;
62
,t,)
63
+ args= existing=
64
if [ -d "$PACKDIR" ]; then
65
for e in `cd "$PACKDIR" && find . -type f -name '*.pack' \
66
| sed -e 's/^\.\///' -e 's/\.pack$//'`