]> git.99rst.org Git - git.git/commit
push: simplify setup_push_simple()
authorFelipe Contreras <redacted>
Mon, 31 May 2021 19:32:35 +0000 (14:32 -0500)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/push.c
git clone https://git.99rst.org/PROJECT