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 &&
222
EOF
test_expect_success '... and undo the refresh' '
- stg reset master.stgit^~1 &&
+ stg reset master.stgit^~2 &&
test "$(echo $(stg series --all))" = "+ p1 > p2" &&
test_cmp expected.txt a
'