aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-08-08 17:01:49 -0700
committerJunio C Hamano <gitster@pobox.com>2007-08-10 22:19:06 -0700
commit7fa8254f9476de24661e93b2a90c6ce30dc10006 (patch)
tree65c74238f402ae0c65476804029851e6af5027f6 /t
parentd699676dda5fdf0996601006c3bac2a9c077a862 (diff)
downloadgit-7fa8254f9476de24661e93b2a90c6ce30dc10006.tar.gz
git-7fa8254f9476de24661e93b2a90c6ce30dc10006.tar.xz
allow git-bundle to create bottomless bundle
While "git bundle" was a useful way to sneakernet incremental changes, we did not allow: $ git bundle create v2.6.20.bndl v2.6.20 to create a bundle that contains the whole history to a well-known good revision. Such a bundle can be mirrored everywhere, and people can prime their repository with it to reduce the load on the repository that serves near the tip of the development. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5510-fetch.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh
index 426017e1d..439430f56 100755
--- a/t/t5510-fetch.sh
+++ b/t/t5510-fetch.sh
@@ -145,4 +145,12 @@ test_expect_success 'bundle does not prerequisite objects' '
test 4 = $(git verify-pack -v bundle.pack | wc -l)
'
+test_expect_success 'bundle should be able to create a full history' '
+
+ cd "$D" &&
+ git tag -a -m '1.0' v1.0 master &&
+ git bundle create bundle4 v1.0
+
+'
+
test_done