test_expect_success 'Create some git-only history' '
echo foo > foo.txt &&
- git add foo.txt &&
+ stg add foo.txt &&
git commit -a -m foo &&
git tag foo-tag &&
for i in 0 1 2 3 4; do
[ "$(echo $(stg series --unapplied --noprefix))" = "" ]
'
-test_expect_success 'Pop two patches with git-reset' '
+test_expect_success 'Pop two patches with git reset' '
git reset --hard HEAD~2 &&
command_error stg refresh &&
stg repair &&
[ "$(echo $(stg series --unapplied --noprefix))" = "p3 p4" ]
'
-test_expect_success 'Go to an unapplied patch with with git-reset' '
+test_expect_success 'Go to an unapplied patch with with git reset' '
git reset --hard $(stg id p3) &&
command_error stg refresh &&
stg repair &&
[ "$(echo $(stg series --unapplied --noprefix))" = "q0 p4" ]
'
-test_expect_success 'Go back to below the stack base with git-reset' '
+test_expect_success 'Go back to below the stack base with git reset' '
git reset --hard foo-tag &&
stg repair &&
[ "$(echo $(stg series --applied --noprefix))" = "" ] &&