diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-07 15:36:39 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-07 15:36:39 -0700 |
commit | fd60acaced6de16ebfb66959067e2b29f99a133e (patch) | |
tree | 32d43206d1d50ddab868904991fa75f88f69ffa7 /git-repack.sh | |
parent | d92f1dc63f0582e7cf8dac54d50a2748119a1ce3 (diff) | |
parent | 178613c737f82489a1e2c387236731541fe19081 (diff) | |
download | git-fd60acaced6de16ebfb66959067e2b29f99a133e.tar.gz git-fd60acaced6de16ebfb66959067e2b29f99a133e.tar.xz |
Merge branch 'fix'
* fix:
repack: honor -d even when no new pack was created
clone: keep --reference even with -l -s
repo-config: document what value_regexp does a bit more clearly.
Release config lock if the regex is invalid
core-tutorial.txt: escape asterisk
Diffstat (limited to 'git-repack.sh')
-rwxr-xr-x | git-repack.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/git-repack.sh b/git-repack.sh index e0c9f323c..4fb3f26e8 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -48,15 +48,15 @@ name=$(git-rev-list --objects --all $rev_list 2>&1 | exit 1 if [ -z "$name" ]; then echo Nothing new to pack. - exit 0 -fi -echo "Pack pack-$name created." +else + echo "Pack pack-$name created." -mkdir -p "$PACKDIR" || exit + mkdir -p "$PACKDIR" || exit -mv .tmp-pack-$name.pack "$PACKDIR/pack-$name.pack" && -mv .tmp-pack-$name.idx "$PACKDIR/pack-$name.idx" || -exit + mv .tmp-pack-$name.pack "$PACKDIR/pack-$name.pack" && + mv .tmp-pack-$name.idx "$PACKDIR/pack-$name.idx" || + exit +fi if test "$remove_redundant" = t then |