git-clone: split up long &&-command-chain and use a function for cleanup
[gitweb.git] / git-repack.sh
index 8c32724be75b77f145106f96257afccb56cfc1ef..b5c667110d31fe9e083f8b7d4db727ed63333e37 100755 (executable)
@@ -63,10 +63,12 @@ case ",$all_into_one," in
 esac
 
 args="$args $local $quiet $no_reuse$extra"
-names=$(git-pack-objects --non-empty --all --reflog $args </dev/null "$PACKTMP") ||
+names=$(git pack-objects --non-empty --all --reflog $args </dev/null "$PACKTMP") ||
        exit 1
 if [ -z "$names" ]; then
-       echo Nothing new to pack.
+       if test -z "$quiet"; then
+               echo Nothing new to pack.
+       fi
 fi
 for name in $names ; do
        fullbases="$fullbases pack-$name"
@@ -113,7 +115,7 @@ then
                  done
                )
        fi
-       git-prune-packed $quiet
+       git prune-packed $quiet
 fi
 
 case "$no_update_info" in