diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-03-08 00:43:05 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-07 17:38:48 -0800 |
commit | 18449ab0e9754ae04ae2f232449241ac361f3db4 (patch) | |
tree | 9675c9712e5f40ff25338b2f19db2ab19d0a3ead /t/t5510-fetch.sh | |
parent | 8315588b59bea45c4b82451cc3ac337fa5c68526 (diff) | |
download | git-18449ab0e9754ae04ae2f232449241ac361f3db4.tar.gz |
git-bundle: avoid packing objects which are in the prerequisites
When saying something like "--since=1.day.ago" or "--max-count=5",
git-bundle finds the boundary commits which are recorded as
prerequisites. However, it failed to tell pack-objects _not_ to
pack the objects which are in these.
Fix that. And add a test for that.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/t5510-fetch.sh')
-rwxr-xr-x | t/t5510-fetch.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index ad589dd0df..ee3f397a9b 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -128,4 +128,15 @@ test_expect_success 'unbundle 2' ' test "tip" = "$(git log -1 --pretty=oneline master | cut -b42-)" ' +test_expect_success 'bundle does not prerequisite objects' ' + cd "$D" && + touch file2 && + git add file2 && + git commit -m add.file2 file2 && + git bundle create bundle3 -1 HEAD && + sed "1,4d" < bundle3 > bundle.pack && + git index-pack bundle.pack && + test 4 = $(git verify-pack -v bundle.pack | wc -l) +' + test_done |