Skip to content

Commit

Permalink
git-p4: test --max-changes
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Pete Wyckoff authored and Junio C Hamano committed Dec 27, 2011
1 parent 5a92a6c commit 7fbe1ce
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/t9806-git-p4-options.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
'
Expand Down

0 comments on commit 7fbe1ce

Please sign in to comment.