diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-04-21 19:15:25 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2021-04-21 19:31:27 +0200 |
| commit | f883b62fedd42eaabace946336d61457211cc5ff (patch) | |
| tree | 3162b93685b05e781f9f0291355b6d6d382134a2 /lisp/magit-push.el | |
| parent | 8d00b6dfe5f9df2bdd0088ef39414df7b509bb02 (diff) | |
Support naming the upstream remote something other than "origin"
Avoid using the term "upstream" though because, like "origin", it
unfortunately is ambiguous. Instead call it the "primary" remote.
Diffstat (limited to 'lisp/magit-push.el')
| -rw-r--r-- | lisp/magit-push.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/magit-push.el b/lisp/magit-push.el index ae1ec4b..2c9d037 100644 --- a/lisp/magit-push.el +++ b/lisp/magit-push.el @@ -292,7 +292,7 @@ what this command will do. For example: (let ((default (magit-get "push.default"))) (unless (equal default "nothing") (or (when-let ((remote (or (magit-get-remote) - (magit-remote-p "origin"))) + (magit-primary-remote))) (refspec (magit-get "remote" remote "push"))) (format "%s using %s" (magit--propertize-face remote 'magit-branch-remote) |
