]> git.ipfire.org Git - thirdparty/git.git/commit
push: simplify setup_push_simple()
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 31 May 2021 19:32:35 +0000 (14:32 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2021 01:09:52 +0000 (10:09 +0900)
commitb8e8b98647f02e721fc3c1b5db6936ba7c1c1167
tree3c59114ef25343a00df11d85981491df5c2581af
parent6b010c80a2596c75d562afa5ab098ffff21bab06
push: simplify setup_push_simple()

There's a safety check to make sure branch->refname isn't different
from branch->merge[0]->src, otherwise we die().

Therefore we always push to branch->refname.

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