[PATCH 1/6] git-repack: resist stray environment variable
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 28, 2009, 09:15 UTC
- Message-ID
- <2478dc84b5fb2617bfab3a8f65f1270de578b94a.1235812035.git.gitster@pobox.com>
- In-Reply-To
- <cover.1235812035.git.gitster@pobox.com>
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> --- git-repack.sh | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-repack.sh b/git-repack.sh index 458a497..8600015 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$//'`
-- 1.6.2.rc2.99.g9f3bb