X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/9b4a6e70a1390d653201e48e12d09005b3fba6c8..5fd79c5f5aa2ea962162260e88f274983cb1e032:/t/t2800-goto-subdir.sh 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 '