My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
718258e
)
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
diff --git
a/git-repack.sh
b/git-repack.sh
index
458a497
..
8600015
100755
(executable)
--- 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$//'`