From: Junio C Hamano Date: Mon, 3 Aug 2026 16:31:29 +0000 (-0700) Subject: Merge branch 'hn/url-push-tracking' X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=24e4e2ef8b25279d117b0bc29d5389cc9df5dbea;p=thirdparty%2Fgit.git Merge branch 'hn/url-push-tracking' When the push remote is specified as a URL, the fetch refspec of a uniquely matching configured remote is now used to find and update the remote-tracking branch (e.g., '@{push}'). * hn/url-push-tracking: remote: find tracking branches for URL push destinations remote: pass repository to push tracking helper --- 24e4e2ef8b25279d117b0bc29d5389cc9df5dbea diff --cc remote.c index b55fc6e18a,3a6abf1258..a13d9a0903 --- a/remote.c +++ b/remote.c @@@ -1931,9 -1975,9 +1975,9 @@@ static char *branch_get_push_1(struct r } if (remote->mirror) - return tracking_for_push_dest(remote, branch->refname, err); + return tracking_for_push_dest(repo, remote, branch->refname, err); - switch (push_default) { + switch (repo_config_values(repo)->push_default) { case PUSH_DEFAULT_NOTHING: return error_buf(err, _("push has no destination (push.default is 'nothing')"));