git p4: test sync/clone --branch behavior
commit46738bd7e9209e9a636dfddb46e32fd606386d81
authorPete Wyckoff <pw@padd.com>
Tue, 15 Jan 2013 00:46:55 +0000 (14 19:46 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 15 Jan 2013 17:46:29 +0000 (15 09:46 -0800)
tree6ce5d607d735fa1b872e423c2dbba6a9204dc1d4
parente4f59a32de3f90ff5aabc09b9da6bd5818c5076b
git p4: test sync/clone --branch behavior

Add failing tests to document behavior when there are multiple p4
branches, as created using the --branch option.  In particular:

Using clone --branch populates the specified branch correctly, but
dies with an error when trying to checkout master.

Calling sync without a master branch dies with an error looking for
master.  When there are two or more branches, a sync does
nothing due to branch detection code, but that is expected.

Using sync --branch to try to update just a particular branch
updates no branch, but appears to succeed.

Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9806-git-p4-options.sh