+ test `stg id stack:{base}` = `git rev-parse master~1` &&
+ test `stg series --applied -c` = 1
+ '
+
+test_expect_success \
+ 'Attempt rebase to non-existing commit' \
+ '
+ command_error stg rebase not-a-ref
+ '
+
+test_expect_success \
+ 'Check patches were re-applied' \
+ '
+ test $(stg series --applied -c) = 1