Skip to content

Commit 7a15b11

Browse files
committed
test(rebase): idempotent rebase messages
1 parent 06e0608 commit 7a15b11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

t/t2200-rebase.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@ test_expect_success 'Check patches were re-applied' '
3636
test $(stg series --applied -c) = 1
3737
'
3838

39+
test_expect_success 'Rebase to same base message' '
40+
stg rebase master 2>out &&
41+
grep "info: Rebasing to .*(master)" out &&
42+
stg rebase master 2>out &&
43+
grep "info: Already based on .*(master)" out
44+
'
45+
3946
test_done

0 commit comments

Comments
 (0)