aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-refs.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2023-07-28 11:30:00 +0200
committerJonas Bernoulli <jonas@bernoul.li>2023-07-28 11:30:00 +0200
commitecccdfa3a4587b2e2139df87d7df04138b4e5218 (patch)
tree8e1dc564158feeefee8c759801f97d5abbde6946 /lisp/magit-refs.el
parentda23111429a449834ef163f2e13391e74ed0c31a (diff)
Use cl-substitute instead of -replace
Diffstat (limited to 'lisp/magit-refs.el')
-rw-r--r--lisp/magit-refs.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/magit-refs.el b/lisp/magit-refs.el
index 9ecbd23..478c3e1 100644
--- a/lisp/magit-refs.el
+++ b/lisp/magit-refs.el
@@ -570,7 +570,9 @@ line is inserted at all."
(concat "refs/remotes/" remote)
magit-buffer-arguments))
(pcase-let ((`(,head-branch ,branch ,ref ,msg)
- (-replace "" nil (split-string line "\0"))))
+ (cl-substitute "" nil
+ (split-string line "\0")
+ :test #'equal)))
(if head-branch
;; Note: Use `ref' instead of `branch' for the check
;; below because 'refname:short' shortens the remote
@@ -657,7 +659,7 @@ line is inserted at all."
(defun magit-refs--format-local-branch (line)
(pcase-let ((`(,head ,branch ,ref ,upstream ,u:ref ,u:track
,push ,p:ref ,p:track ,msg)
- (-replace "" nil (split-string line "\0"))))
+ (cl-substitute "" nil (split-string line "\0") :test #'equal)))
(when (or (not branch)
(magit-refs--insert-refname-p branch))
(let* ((headp (equal head "*"))