From: Junio C Hamano Date: Thu, 30 Jul 2026 17:40:40 +0000 (-0700) Subject: Merge branch 'hn/url-push-tracking' into jch X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a97039bd43f7a7c4e9f21f0fc1b37218699c987f;p=thirdparty%2Fgit.git Merge branch 'hn/url-push-tracking' into jch 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 --- a97039bd43f7a7c4e9f21f0fc1b37218699c987f 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')"));