aboutsummaryrefslogtreecommitdiff
path: root/lisp/magit-git.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-04-15 19:45:29 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-04-15 19:45:29 +0200
commit7db107c03a1d52f1de3bca4282e3dc9ca2ddeed7 (patch)
treefc2fbb9dffe714acdad7ff92e971cb881e2183dd /lisp/magit-git.el
parent1762e7f3d96a66286e253c0648a24ac989a955e3 (diff)
Use ## more
Diffstat (limited to 'lisp/magit-git.el')
-rw-r--r--lisp/magit-git.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el
index 4c5ec28..29e00bf 100644
--- a/lisp/magit-git.el
+++ b/lisp/magit-git.el
@@ -2060,9 +2060,8 @@ SORTBY is a key or list of keys to pass to the `--sort' flag of
(defun magit-remote-head (remote)
(and-let* ((line (cl-find-if
- (lambda (line)
- (string-match
- "\\`ref: refs/heads/\\([^\s\t]+\\)[\s\t]HEAD\\'" line))
+ (##string-match
+ "\\`ref: refs/heads/\\([^\s\t]+\\)[\s\t]HEAD\\'" %)
(magit-git-lines "ls-remote" "--symref" remote "HEAD"))))
(match-string 1 line)))