]> Kevux Git Server - rit/commit
push: reorganize setup_push_simple()
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 31 May 2021 19:32:34 +0000 (14:32 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2021 01:09:51 +0000 (10:09 +0900)
commit6b010c80a2596c75d562afa5ab098ffff21bab06
tree4fe71c77fcf82b296a51aa5e7fb255d412e181b1
parentd099b9c9c723e8ca974e5ece027165e2824a1b89
push: reorganize setup_push_simple()

Simply move the code around and remove dead code. In particular the
'!same_remote' conditional is a no-op since that part of the code is the
same_remote leg of the conditional beforehand.

No functional changes.

Suggestions-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/push.c