From 7fbe1ce9e2050f1d3f64868abcbc0d0794af3d13 Mon Sep 17 00:00:00 2001 From: Pete Wyckoff Date: Sat, 24 Dec 2011 21:07:37 -0500 Subject: [PATCH] git-p4: test --max-changes Signed-off-by: Pete Wyckoff Signed-off-by: Junio C Hamano --- t/t9806-git-p4-options.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/t/t9806-git-p4-options.sh b/t/t9806-git-p4-options.sh index 67703267b..cc0fd26d3 100755 --- a/t/t9806-git-p4-options.sh +++ b/t/t9806-git-p4-options.sh @@ -83,6 +83,16 @@ test_expect_success 'clone/sync --import-local' ' ) ' +test_expect_success 'clone --max-changes' ' + "$GITP4" clone --dest="$git" --max-changes 2 //depot@all && + test_when_finished cleanup_git && + ( + cd "$git" && + git log --oneline refs/heads/master >lines && + test_line_count = 2 lines + ) +' + test_expect_success 'kill p4d' ' kill_p4d ' -- 2.26.2