X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-repack.sh;h=624feec26f66b15926ffa11767c146222bc9a185;hb=5501bf854ce6a3847ef0de6f6aa63f6b93e82b67;hp=769baaf7e11277db47f4e897aea82c1581201c6b;hpb=d2a99221a768e2a231338fbe17d92ffa7e0458af;p=git.git diff --git a/git-repack.sh b/git-repack.sh index 769baaf7e..624feec26 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -52,7 +52,7 @@ true) esac PACKDIR="$GIT_OBJECT_DIRECTORY/pack" -PACKTMP="$GIT_OBJECT_DIRECTORY/.tmp-$$-pack" +PACKTMP="$PACKDIR/.tmp-$$-pack" rm -f "$PACKTMP"-* trap 'rm -f "$PACKTMP"-*' 0 1 2 3 15 @@ -82,6 +82,8 @@ case ",$all_into_one," in ;; esac +mkdir -p "$PACKDIR" || exit + args="$args $local ${GIT_QUIET:+-q} $no_reuse$extra" names=$(git pack-objects --keep-true-parents --honor-pack-keep --non-empty --all --reflog $args