diff options
author | Junio C Hamano <junkio@cox.net> | 2007-02-28 14:38:36 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-28 14:38:36 -0800 |
commit | 77b50ab009deab7f8eb703843a71ac7253b977c8 (patch) | |
tree | ce1cd978189ff7f50efbf8e6d41895e89b6a6e11 /t | |
parent | 1db8b60b2a6ef0cc0f7cc7d0783b7cda2ce894ca (diff) | |
parent | 64d99e9c5a4a3fb35d803894992764a6e288de5d (diff) | |
download | git-77b50ab009deab7f8eb703843a71ac7253b977c8.tar.gz git-77b50ab009deab7f8eb703843a71ac7253b977c8.tar.xz |
Merge branch 'js/bundle'
* js/bundle:
bundle: reword missing prerequisite error message
git-bundle: record commit summary in the prerequisite data
git-bundle: fix 'create --all'
git-bundle: avoid fork() in verify_bundle()
git-bundle: assorted fixes
Add git-bundle: move objects and references by archive
Diffstat (limited to 't')
-rwxr-xr-x | t/t5510-fetch.sh | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 50c64856f..fa76662dc 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -35,7 +35,9 @@ test_expect_success "clone and setup child repos" ' echo "URL: ../two/.git/" echo "Pull: refs/heads/master:refs/heads/two" echo "Pull: refs/heads/one:refs/heads/one" - } >.git/remotes/two + } >.git/remotes/two && + cd .. && + git clone . bundle ' test_expect_success "fetch test" ' @@ -81,4 +83,28 @@ test_expect_success 'fetch following tags' ' ' +test_expect_success 'create bundle 1' ' + cd "$D" && + echo >file updated again by origin && + git commit -a -m "tip" && + git bundle create bundle1 master^..master +' + +test_expect_success 'create bundle 2' ' + cd "$D" && + git bundle create bundle2 master~2..master +' + +test_expect_failure 'unbundle 1' ' + cd "$D/bundle" && + git checkout -b some-branch && + git fetch "$D/bundle1" master:master +' + +test_expect_success 'unbundle 2' ' + cd "$D/bundle" && + git fetch ../bundle2 master:master && + test "tip" = "$(git log -1 --pretty=oneline master | cut -b42-)" +' + test_done |