3 test_description
='Try a push that requires merging a file that is dirty'
7 test_expect_success
'Initialize StGit stack with two patches' '
13 git commit -a -m p1 &&
15 git commit -a -m p2 &&
19 test_expect_success
'Pop one patch and update the other' '
25 test_expect_success
'Push with dirty worktree' '
27 [ "$(echo $(stg series --applied --noprefix))" = "p1" ] &&
28 [ "$(echo $(stg series --unapplied --noprefix))" = "p2" ] &&
29 conflict stg goto --keep p2 &&
30 [ "$(echo $(stg series --applied --noprefix))" = "p1" ] &&
31 [ "$(echo $(stg series --unapplied --noprefix))" = "p2" ] &&
32 [ "$(echo $(cat a))" = "4" ]