Skip to content

Commit 7fbe1ce

Browse files
Pete Wyckoffgitster
authored andcommitted
git-p4: test --max-changes
Signed-off-by: Pete Wyckoff <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5a92a6c commit 7fbe1ce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

t/t9806-git-p4-options.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ test_expect_success 'clone/sync --import-local' '
8383
)
8484
'
8585

86+
test_expect_success 'clone --max-changes' '
87+
"$GITP4" clone --dest="$git" --max-changes 2 //depot@all &&
88+
test_when_finished cleanup_git &&
89+
(
90+
cd "$git" &&
91+
git log --oneline refs/heads/master >lines &&
92+
test_line_count = 2 lines
93+
)
94+
'
95+
8696
test_expect_success 'kill p4d' '
8797
kill_p4d
8898
'

0 commit comments

Comments
 (0)