summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-02-27 23:58:50 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-02-28 01:06:05 -0800
commit2478dc84b5fb2617bfab3a8f65f1270de578b94a (patch)
treeef740f03ff626e2873eca2fbf218dc962ab3c2c6
parentGIT 1.6.0.6 (diff)
downloadtgif-2478dc84b5fb2617bfab3a8f65f1270de578b94a.tar.xz
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>
-rwxr-xr-xgit-repack.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-repack.sh b/git-repack.sh
index 458a497af8..86000151cc 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$//'`