Skip to content

Commit 938c295

Browse files
committed
test: Test pull --merged clobber behavior
This test exersizes `stg pull --merged` in a manner that will fail if the merge check is done using 3way patch application.
1 parent 85d5d57 commit 938c295

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

t/t2103-pull-trailing.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,15 @@ test_expect_success 'Check that all went well' '
7878
test_cmp foo/file bar/file
7979
'
8080

81+
test_expect_success 'Ensure that new patches are not clobbered' '
82+
(
83+
cd bar &&
84+
echo "new content" >> file &&
85+
cp file expected &&
86+
stg refresh &&
87+
stg pull --merged &&
88+
test_cmp expected file
89+
)
90+
'
91+
8192
test_done

0 commit comments

Comments
 (0)