diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:17:20 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:17:20 +0900 |
commit | babe3f45019ecfde96339b773036d4288a1819da (patch) | |
tree | 34dece0e3d2bc84b23f21d0f9b94a9a5780cd73c /t/t6028-merge-up-to-date.sh | |
parent | 06f1b8df6f3f90746c8ed50296e467e540531d8f (diff) | |
download | git-babe3f45019ecfde96339b773036d4288a1819da.tar.gz git-babe3f45019ecfde96339b773036d4288a1819da.tar.bz2 git-babe3f45019ecfde96339b773036d4288a1819da.zip |
Imported Upstream version 2.29.0upstream/2.29.0
Diffstat (limited to 't/t6028-merge-up-to-date.sh')
-rwxr-xr-x | t/t6028-merge-up-to-date.sh | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/t/t6028-merge-up-to-date.sh b/t/t6028-merge-up-to-date.sh deleted file mode 100755 index 7763c1ba..00000000 --- a/t/t6028-merge-up-to-date.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/sh - -test_description='merge fast-forward and up to date' - -. ./test-lib.sh - -test_expect_success setup ' - >file && - git add file && - test_tick && - git commit -m initial && - git tag c0 && - - echo second >file && - git add file && - test_tick && - git commit -m second && - git tag c1 && - git branch test && - echo third >file && - git add file && - test_tick && - git commit -m third && - git tag c2 -' - -test_expect_success 'merge -s recursive up-to-date' ' - - git reset --hard c1 && - test_tick && - git merge -s recursive c0 && - expect=$(git rev-parse c1) && - current=$(git rev-parse HEAD) && - test "$expect" = "$current" - -' - -test_expect_success 'merge -s recursive fast-forward' ' - - git reset --hard c0 && - test_tick && - git merge -s recursive c1 && - expect=$(git rev-parse c1) && - current=$(git rev-parse HEAD) && - test "$expect" = "$current" - -' - -test_expect_success 'merge -s ours up-to-date' ' - - git reset --hard c1 && - test_tick && - git merge -s ours c0 && - expect=$(git rev-parse c1) && - current=$(git rev-parse HEAD) && - test "$expect" = "$current" - -' - -test_expect_success 'merge -s ours fast-forward' ' - - git reset --hard c0 && - test_tick && - git merge -s ours c1 && - expect=$(git rev-parse c0^{tree}) && - current=$(git rev-parse HEAD^{tree}) && - test "$expect" = "$current" - -' - -test_expect_success 'merge -s subtree up-to-date' ' - - git reset --hard c1 && - test_tick && - git merge -s subtree c0 && - expect=$(git rev-parse c1) && - current=$(git rev-parse HEAD) && - test "$expect" = "$current" - -' - -test_expect_success 'merge fast-forward octopus' ' - - git reset --hard c0 && - test_tick && - git merge c1 c2 && - expect=$(git rev-parse c2) && - current=$(git rev-parse HEAD) && - test "$expect" = "$current" -' - -test_done |