3 test_description
='Run "stg refresh -p"'
7 # Ignore our own temp files.
8 cat >> .git
/info
/exclude
<<EOF
14 test_expect_success
'Initialize StGit stack' '
19 stg new p$i -m "Patch $i" &&
25 cat > expected1.txt
<<EOF
29 cat > expected2.txt
<<EOF
32 test_expect_failure
'Add new file to non-top patch' '
33 stg status > status1.txt &&
34 test_cmp expected0.txt status1.txt &&
38 stg status > status2.txt &&
39 test_cmp expected0.txt status2.txt &&
40 stg files p1 > files1.txt &&
41 test_cmp expected1.txt files1.txt &&
42 stg files p2 > files2.txt &&
43 test_cmp expected2.txt files2.txt