Thread (59 messages) 59 messages, 5 authors, 2021-06-01

[PATCH 14/15] push: don't get a full remote object

flat view
STALE1953d

From: Felipe Contreras <hidden>
Date: 2021-05-29 07:45:29
Subsystem: the rest · Maintainer: Linus Torvalds

All we need to know is that their names are different.

Signed-off-by: Felipe Contreras <redacted>
---
 builtin/push.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/push.c b/builtin/push.c
index 818ca4c5c9..2f30a97b97 100644
--- a/builtin/push.c
+++ b/builtin/push.c
@@ -225,7 +225,7 @@ static void setup_default_push_refspecs(struct remote *remote)
 		die(_(message_detached_head_die), remote->name);
 
 	dst = branch->refname;
-	triangular = remote != remote_get(NULL);
+	triangular = strcmp(remote->name, remote_for_branch(branch, NULL));
 
 	switch (push_default) {
 	default:
-- 
2.32.0.rc0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help