Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-repack: resist stray environment variable
author
Junio C Hamano
<gitster@pobox.com>
Sat, 28 Feb 2009 07:58:50 +0000
(23:58 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 28 Feb 2009 09:06:05 +0000
(
01:06
-0800)
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
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
718258e
)
diff --git
a/git-repack.sh
b/git-repack.sh
index 458a497af810c7bb188a5aafb80c32aa0bc05264..86000151ccbe259132c6cf25d6c23e3f763aba06 100755
(executable)
--- a/
git-repack.sh
+++ b/
git-repack.sh
@@
-60,6
+60,7
@@
case ",$all_into_one," in
args='--unpacked --incremental'
;;
,t,)
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$//'`
if [ -d "$PACKDIR" ]; then
for e in `cd "$PACKDIR" && find . -type f -name '*.pack' \
| sed -e 's/^\.\///' -e 's/\.pack$//'`