+ test `stg id base@stack` = `git rev-parse master~1` &&
+ test `stg applied | wc -l` = 1
+ '
+
+test_expect_failure \
+ 'Attempt rebase to non-existing commit' \
+ '
+ stg rebase not-a-ref
+ '
+
+test_expect_success \
+ 'Check patches were re-applied' \
+ '
+ test $(stg applied | wc -l) = 1