summaryrefslogtreecommitdiff
path: root/git-repack.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-02-27 23:58:50 -0800
committerJunio C Hamano <gitster@pobox.com>2009-02-28 01:06:05 -0800
commit2478dc84b5fb2617bfab3a8f65f1270de578b94a (patch)
treeef740f03ff626e2873eca2fbf218dc962ab3c2c6 /git-repack.sh
parent718258e256b74622aa55f5ee0cb9cff4cce6bf9f (diff)
downloadgit-2478dc84b5fb2617bfab3a8f65f1270de578b94a.tar.gz
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>
Diffstat (limited to 'git-repack.sh')
-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$//'`