aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-push.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2022-04-22 18:14:53 +0200
committerJonas Bernoulli <jonas@bernoul.li>2022-04-22 18:14:53 +0200
commit59fb9ce03fe364e29ab5057cd93c96bff601dedc (patch)
tree56f56c3e817ada159324d1b5b64a329d61e62a82 /lisp/magit-push.el
parent571b4346c1057cd504ddb6497c6b35c5d38eaa61 (diff)
Use string-replace instead of replace-regexp-in-string
Diffstat (limited to 'lisp/magit-push.el')
-rw-r--r--lisp/magit-push.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/magit-push.el b/lisp/magit-push.el
index 89e3dc2..a0ab43c 100644
--- a/lisp/magit-push.el
+++ b/lisp/magit-push.el
@@ -90,7 +90,7 @@ argument the push-remote can be changed before pushed to it."
(magit--select-push-remote "push there")))
(when changed
(magit-confirm 'set-and-push
- (replace-regexp-in-string
+ (string-replace
"%" "%%"
(format "Really use \"%s\" as push-remote and push \"%s\" there"
remote branch))))
@@ -152,7 +152,7 @@ the upstream."
;; is what the user wants to happen.
(setq merge (concat "refs/heads/" merge)))
(magit-confirm 'set-and-push
- (replace-regexp-in-string
+ (string-replace
"%" "%%"
(format "Really use \"%s\" as upstream and push \"%s\" there"
upstream branch))))