diff options
author | 2013-09-11 14:56:58 -0700 | |
---|---|---|
committer | 2013-09-11 14:56:59 -0700 | |
commit | 2de0f39cd27d8ab8eae2e3430b81294f26252693 (patch) | |
tree | cf9fc811487dc0c43ceb4cdd6a9f5a330054c8e6 /t | |
parent | Update draft release notes to 1.8.5 for the second batch of topics (diff) | |
parent | push: respect --no-thin (diff) | |
download | tgif-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-x | t/t5516-fetch-push.sh | 17 |
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 |