X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-repack.sh;h=1fafb6ecf6ffbac817865470ec923af203da8e7e;hb=3f6726e1f112d221bd2a919e9b1b2927aeef6150;hp=4e16d34971d5045b095a42cfe27819e666f157a6;hpb=6ed64058e1241f9939c4abf5d6a9eaed6a2cc795;p=git.git diff --git a/git-repack.sh b/git-repack.sh index 4e16d349..1fafb6ec 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -3,7 +3,8 @@ # Copyright (c) 2005 Linus Torvalds # -. git-sh-setup || die "Not a git archive" +USAGE='[-a] [-d] [-l] [-n]' +. git-sh-setup no_update_info= all_into_one= remove_redundant= local= while case "$#" in 0) break ;; esac @@ -13,7 +14,7 @@ do -a) all_into_one=t ;; -d) remove_redundant=t ;; -l) local=t ;; - *) break ;; + *) usage ;; esac shift done @@ -41,7 +42,7 @@ esac if [ "$local" ]; then pack_objects="$pack_objects --local" fi -name=$(git-rev-list --objects $rev_list $(git-rev-parse $rev_parse) | +name=$(git-rev-list --objects $rev_list $(git-rev-parse $rev_parse) 2>&1 | git-pack-objects --non-empty $pack_objects .tmp-pack) || exit 1 if [ -z "$name" ]; then