aboutsummaryrefslogtreecommitdiff
path: root/t/t3210-pack-refs.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-11-08 17:32:49 -0800
committerJunio C Hamano <gitster@pobox.com>2008-11-08 17:32:49 -0800
commit832e719d79296f1942a2aca5fb067bc610986fc4 (patch)
tree8dfdf706b10fa4891ebaceb5ec7543078a73cc44 /t/t3210-pack-refs.sh
parent2819854ec5013fc0958ea477fa49d53fc0faee80 (diff)
parent16ed2f48be228918af3d1a6c5a6a4fe9b832cb84 (diff)
downloadgit-832e719d79296f1942a2aca5fb067bc610986fc4.tar.gz
git-832e719d79296f1942a2aca5fb067bc610986fc4.tar.xz
Merge branch 'cb/maint-update-ref-fix' into maint
* cb/maint-update-ref-fix: push: fix local refs update if already up-to-date do not force write of packed refs
Diffstat (limited to 't/t3210-pack-refs.sh')
-rwxr-xr-xt/t3210-pack-refs.sh7
1 files changed, 7 insertions, 0 deletions
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 &&