branch: elpa/git-commit
commit e34153df25b2c32892bded288f749864ebdf86fd
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    magit-update-default-branch: Improve a prompt
---
 lisp/magit-remote.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-remote.el b/lisp/magit-remote.el
index 5c4d64d72b..eb6a6c7536 100644
--- a/lisp/magit-remote.el
+++ b/lisp/magit-remote.el
@@ -268,9 +268,10 @@ Delete the symbolic-ref \"refs/remotes/<remote>/HEAD\"."
      ((equal oldname newname)
       (setq oldname
             (read-string
-             (format "Name of default branch is still `%s', %s\n%s" oldname
-                     "but some upstreams might need updating."
-                     "Name of upstream branches to update: ")))
+             (format
+              "Name of default branch is still `%s', %s\n%s `%s': " oldname
+              "but the upstreams of some local branches might need updating."
+              "Name of upstream branches to replace with" newname)))
       (magit--set-default-branch newname oldname)
       (magit-refresh))
      (t

Reply via email to