Merge branch 'js/no-html-bypass-on-windows' into rt/help-unknown
[gitweb.git] / t / t6101-rev-parse-parents.sh
index 7ea14ced313d3f0dd20d4afd2fc2a0d3309b938f..1c6952d04936b190c9cf42024519273b00747113 100755 (executable)
@@ -19,8 +19,18 @@ test_expect_success 'setup' '
        git checkout --orphan tmp &&
        test_commit start2 &&
        git checkout master &&
-       git merge -m next start2 &&
-       test_commit final
+       git merge -m next --allow-unrelated-histories start2 &&
+       test_commit final &&
+
+       test_seq 40 |
+       while read i
+       do
+               git checkout --orphan "b$i" &&
+               test_tick &&
+               git commit --allow-empty -m "$i" &&
+               commit=$(git rev-parse --verify HEAD) &&
+               printf "$commit " >>.git/info/grafts
+       done
 '
 
 test_expect_success 'start is valid' '
@@ -79,6 +89,10 @@ test_expect_success 'final^1^! = final^1 ^final^1^1 ^final^1^2' '
        test_cmp expect actual
 '
 
+test_expect_success 'large graft octopus' '
+       test_cmp_rev_output b31 "git rev-parse --verify b1^30"
+'
+
 test_expect_success 'repack for next test' '
        git repack -a -d
 '