X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3210-pack-refs.sh;h=413019acafc98646a61e77960527f042a8f96ac6;hb=4503bd5c3732b142667e14d214c21c46e8f3eeaa;hp=087ef75061f4d56fcb6350284d91820485249087;hpb=11bd3ddb913afd9665e7e822ea54be4fc8d2d5ea;p=git.git diff --git a/t/t3210-pack-refs.sh b/t/t3210-pack-refs.sh index 087ef7506..413019aca 100755 --- a/t/t3210-pack-refs.sh +++ b/t/t3210-pack-refs.sh @@ -96,6 +96,13 @@ test_expect_success \ git branch -d n/o/p && git branch n' +test_expect_success \ + 'see if up-to-date packed refs are preserved' \ + 'git branch q && + git pack-refs --all --prune && + git update-ref refs/heads/q refs/heads/q && + ! test -f .git/refs/heads/q' + test_expect_success 'pack, prune and repack' ' git tag foo && git pack-refs --all --prune &&