Skip to content

Commit

Permalink
git-repack: resist stray environment variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Feb 28, 2009
1 parent 718258e commit 2478dc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-repack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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$//'`
Expand Down

0 comments on commit 2478dc8

Please sign in to comment.