X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3210-pack-refs.sh;h=f0c7e22b36c66234e2a46bac659506afb454dfa7;hb=563b43ee45b87cf1e4bba99d3d0216f396d5c873;hp=b1e9f2eed22b9938a6dbba89a98f6dcc9f2dded1;hpb=03f99c03f806ca13b5974450409426c04af220f2;p=git.git diff --git a/t/t3210-pack-refs.sh b/t/t3210-pack-refs.sh index b1e9f2eed..f0c7e22b3 100755 --- a/t/t3210-pack-refs.sh +++ b/t/t3210-pack-refs.sh @@ -34,7 +34,7 @@ test_expect_success \ 'see if a branch still exists when packed' \ 'git-branch b && git-pack-refs --all && - rm .git/refs/heads/b && + rm -f .git/refs/heads/b && echo "$SHA1 refs/heads/b" >expect && git-show-ref b >result && diff expect result' @@ -96,4 +96,13 @@ test_expect_success \ git-branch -d n/o/p && git-branch n' +test_expect_success 'pack, prune and repack' ' + git-tag foo && + git-pack-refs --all --prune && + git-show-ref >all-of-them && + git-pack-refs && + git-show-ref >again && + diff all-of-them again +' + test_done