diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2024-12-23 22:33:30 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2024-12-23 22:33:30 +0100 |
| commit | 692cc5e7696f9de6fce4a2e076eb51507809aaf3 (patch) | |
| tree | 356015b0631b21f5bc44a5cb7bc62b024739eb8d /lisp/magit-git.el | |
| parent | 5cb3492464fee6fc9ee8749f6c70fc72b732cf79 (diff) | |
magit-list-special-refnames: Fix broken function
Previously it returned a list of `t's instead of special refnames.
Closes #5277.
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index c7e64d4..356f42a 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -1981,8 +1981,9 @@ SORTBY is a key or list of keys to pass to the `--sort' flag of (defun magit-list-special-refnames () (let ((gitdir (magit-gitdir))) - (seq-keep (lambda (name) (file-exists-p (expand-file-name name gitdir))) - magit-special-refnames))) + (cl-remove-if-not (lambda (name) + (file-exists-p (expand-file-name name gitdir))) + magit-special-refnames))) (defun magit-list-branch-names () (magit-list-refnames (list "refs/heads" "refs/remotes"))) |
