Code

Merge branch 'sp/maint-plug-traverse-commit-list-leak' into maint
[git.git] / t / t5510-fetch.sh
index ee3f397a9bf8d4a08c2f897f0ae094b8ea686344..439430f569ca70b5e3b08ef07996949d7259c9b7 100755 (executable)
@@ -134,9 +134,23 @@ test_expect_success 'bundle does not prerequisite objects' '
        git add file2 &&
        git commit -m add.file2 file2 &&
        git bundle create bundle3 -1 HEAD &&
-       sed "1,4d" < bundle3 > bundle.pack &&
+       (
+               while read x && test -n "$x"
+               do
+                       :;
+               done
+               cat
+       ) <bundle3 >bundle.pack &&
        git index-pack bundle.pack &&
        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