builtin-merge: release the lockfile in try_merge_strategy()
[gitweb.git] / t / t6026-merge-attr.sh
index 56fc34176859b81137b4d88af90398b9a74a18f7..86f47ca595c2d71e132c8acdbf7d8edadc1e0ecf 100755 (executable)
@@ -142,4 +142,26 @@ test_expect_success 'custom merge backend' '
        rm -f $o $a $b
 '
 
+test_expect_success 'up-to-date merge without common ancestor' '
+       test_create_repo repo1 &&
+       test_create_repo repo2 &&
+       test_tick &&
+       (
+               cd repo1 &&
+               >a &&
+               git add a &&
+               git commit -m initial
+       ) &&
+       test_tick &&
+       (
+               cd repo2 &&
+               git commit --allow-empty -m initial
+       ) &&
+       test_tick &&
+       (
+               cd repo1 &&
+               git pull ../repo2 master
+       )
+'
+
 test_done