mirror of
https://github.com/git/git.git
synced 2025-04-04 09:47:09 +00:00
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>
This commit is contained in:
parent
718258e256
commit
2478dc84b5
@ -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$//'`
|
||||
|
Loading…
x
Reference in New Issue
Block a user