]> git.ipfire.org Git - thirdparty/git.git/commit - t/t6030-bisect-porcelain.sh
bisect: move argument parsing before state modification.
authorJon Seymour <jon.seymour@gmail.com>
Thu, 4 Aug 2011 12:00:57 +0000 (22:00 +1000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Aug 2011 22:32:34 +0000 (15:32 -0700)
commit4764f46492b0849ce3cf2f527978acd9c2d5f7e6
treed743dff39c936708497e0a510b3531835edecac4
parentb35acb53458d0f99ba2400b902980b35e5acc2d3
bisect: move argument parsing before state modification.

Currently 'git bisect start' modifies some state prior to checking
that its arguments are valid.

This change moves argument validation before state modification
with the effect that state modification does not occur
unless argument validations succeeds.

An existing test is changed to check that new bisect state
is not created if arguments are invalid.

A new test is added to check that existing bisect state
is not modified if arguments are invalid.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-bisect.sh
t/t6030-bisect-porcelain.sh