X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/7a6a45b5f1379466bd23b33a7feed47d0b8331b7..refs/heads/origin:/t/t2800-goto-subdir.sh?ds=sidebyside diff --git a/t/t2800-goto-subdir.sh b/t/t2800-goto-subdir.sh index 28b8292..5ac77cc 100755 --- a/t/t2800-goto-subdir.sh +++ b/t/t2800-goto-subdir.sh @@ -13,7 +13,7 @@ test_expect_success 'Initialize StGit stack' ' for i in 1 2 3; do echo foo$i >> foo/bar && stg new p$i -m p$i && - git add foo/bar && + stg add foo/bar && stg refresh done ' @@ -25,7 +25,7 @@ cat > expected2.txt < actual.txt && test_cmp expected1.txt actual.txt && ls foo > actual.txt && @@ -36,7 +36,8 @@ test_expect_success 'Prepare conflicting goto' ' stg delete p2 ' -cat > expected1.txt < expected1a.txt <>>>>>> patched:foo/bar EOF + +# ... and this result after commit 606475f3. +cat > expected1b.txt <>>>>>> patched +EOF + cat > expected2.txt < actual.txt && - test_cmp expected1.txt actual.txt && + ( test_cmp expected1a.txt actual.txt \ + || test_cmp expected1b.txt actual.txt ) && ls foo > actual.txt && test_cmp expected2.txt actual.txt '