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 applied))" = "p1" ] &&
28 [ "$(echo $(stg unapplied))" = "p2" ] &&
30 [ "$(echo $(stg applied))" = "p1" ] &&
31 [ "$(echo $(stg unapplied))" = "p2" ] &&
32 [ "$(echo $(cat a))" = "4" ]