Skip to content

Fix triangular workflows for upstream, simple

Ramkumar Ramachandra git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4t/push-default: remove redundant test_config linest/t5528-push-default.sh+0 -20 replies
2/4push: make upstream, simple work with pushdefaultbuiltin/push.c t/t5528-push-default.sh+2 -711 replies
3/4t/push-default: generalize test_push_{success, commit}t/t5528-push-default.sh+4 -20 replies
4/4t/push-default: test pushdefault with all modest/t5528-push-default.sh+18 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Fix triangular workflows for upstream, simple
Quoted 7 lines · Junio C Hamano

It might be a beginning of a change in the right direction (I didn't check the codeflow), but given that the test that comes after the one you removed is looking at branch->merge[0] and deciding what to do, and branch.$name.merge should *never* affect anything when remote.pushdefault or branch.$name.pushremote is in use while deciding what is pushed out or if the push is allowed, I do not think the removal of these five lines alone can possibly "work".

I just spent hours breaking my head thinking about why you said my patch cannot possibly "work". I give up.

The artificial limitation was introduced by you in 135dade, and here's the relevant part of the commit message:

- The current branch does have its remote and upstream branch configured, but the user said "git push $there", where $there is not the remote named by "branch.$name.remote". By definition, no branch at repository $there is set to integrate with the current branch in this case, and this push is not meant to update any branch at the remote repository $there.

What definition is this, and why does it only apply to upstream/simple? Did you implicitly assume that upstream/simple are only meant to be used in centralized workflows?

Thanks.

Ramkumar Ramachandra (4):
t/push-default: remove redundant test_config lines
push: make upstream, simple work with pushdefault t/push-default: generalize test_push_{success, commit} t/push-default: test pushdefault with all modes

 builtin/push.c          |  5 -----
 t/t5528-push-default.sh | 30 ++++++++++++++++++++++++------
 2 files changed, 24 insertions(+), 11 deletions(-)
Signature · 1 line
1.8.3.247.g485169c