X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/baf8241d1b7835ba31125d2b75683601ee2b0403..refs/heads/origin:/t/t3101-reset-hard.sh diff --git a/t/t3101-reset-hard.sh b/t/t3101-reset-hard.sh index 2807ba3..a93682b 100755 --- a/t/t3101-reset-hard.sh +++ b/t/t3101-reset-hard.sh @@ -13,7 +13,7 @@ EOF test_expect_success 'Initialize StGit stack with three patches' ' stg init && echo 000 >> a && - git add a && + stg add a && git commit -m a && echo 111 >> a && git commit -a -m p1 && @@ -28,7 +28,7 @@ cat > expected.txt < actual.txt && test_cmp expected.txt actual.txt && test "$(echo $(stg series))" = "+ p1 > p3 - p2" @@ -47,7 +47,7 @@ test_expect_success 'Try to reset with --hard' ' stg reset --hard master.stgit^~1 && stg status a > actual.txt && test_cmp expected.txt actual.txt && - test "$(echo $(stg series))" = "> p1 - p3 - p2" + test "$(echo $(stg series))" = "+ p1 + p2 > p3" ' test_done