push: check for errors earlier
commit800a4ab399e954b8970897076b327bf1cf18c0ac
authorBrandon Williams <bmwill@google.com>
Wed, 16 May 2018 22:58:15 +0000 (16 15:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 May 2018 21:19:44 +0000 (18 06:19 +0900)
tree76cb51d24eb428a317fc8281fa09f55ba94330d2
parent9fa2e5e8534519f07d1a93878fde6341fb012a6e
push: check for errors earlier

Move the error checking for using the "--mirror", "--all", and "--tags"
options earlier and explicitly check for the presence of the flags
instead of checking for a side-effect of the flag.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/push.c