summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-09-11 14:56:58 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-09-11 14:56:59 -0700
commit2de0f39cd27d8ab8eae2e3430b81294f26252693 (patch)
treecf9fc811487dc0c43ceb4cdd6a9f5a330054c8e6 /t
parentUpdate draft release notes to 1.8.5 for the second batch of topics (diff)
parentpush: respect --no-thin (diff)
downloadtgif-2de0f39cd27d8ab8eae2e3430b81294f26252693.tar.xz
Merge branch 'nd/push-no-thin'
"git push --no-thin" was a no-op by mistake. * nd/push-no-thin: push: respect --no-thin
Diffstat (limited to 't')
-rwxr-xr-xt/t5516-fetch-push.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 4691d51b8c..99c32d7539 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -1172,4 +1172,21 @@ test_expect_success 'push --follow-tag only pushes relevant tags' '
test_cmp expect actual
'
+test_expect_success 'push --no-thin must produce non-thin pack' '
+ cat >>path1 <<\EOF &&
+keep base version of path1 big enough, compared to the new changes
+later, in order to pass size heuristics in
+builtin/pack-objects.c:try_delta()
+EOF
+ git commit -am initial &&
+ git init no-thin &&
+ git --git-dir=no-thin/.git config receive.unpacklimit 0 &&
+ git push no-thin/.git refs/heads/master:refs/heads/foo &&
+ echo modified >> path1 &&
+ git commit -am modified &&
+ git repack -adf &&
+ rcvpck="git receive-pack --reject-thin-pack-for-testing" &&
+ git push --no-thin --receive-pack="$rcvpck" no-thin/.git refs/heads/master:refs/heads/foo
+'
+
test_done