diff options
| author | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-13 14:53:39 +0200 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-13 14:53:39 +0200 |
| commit | 86724c53bdb0d97d2a0af99373a7bc61c43abc57 (patch) | |
| tree | a1ae5e0e0f9c04ad3653937a18abb4a7afdd65ba | |
| parent | 4dbcda27d6870990421e217c8379b14037d9239f (diff) | |
Minor cleanup of the #1897 fix
- Use cl-remove-if instead of seq-remove for consistency with the rest
of the codebase.
- Remove unnecessary project/.git/ from test fixture (git init creates it).
- Remove unnecessary projectile-indexing-method binding in test.
| -rw-r--r-- | projectile.el | 2 | ||||
| -rw-r--r-- | test/projectile-test.el | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/projectile.el b/projectile.el index 574c5bd..1f52080 100644 --- a/projectile.el +++ b/projectile.el @@ -1546,7 +1546,7 @@ IGNORED-DIRECTORIES may optionally be provided." (deleted (unless (and projectile-git-use-fd projectile-fd-executable) (projectile-git-deleted-files directory)))) (if deleted - (seq-remove (lambda (f) (member f deleted)) files) + (cl-remove-if (lambda (f) (member f deleted)) files) files))) (t (projectile-files-via-ext-command directory (projectile-get-ext-command vcs)))))) diff --git a/test/projectile-test.el b/test/projectile-test.el index 25c96f1..7864c09 100644 --- a/test/projectile-test.el +++ b/test/projectile-test.el @@ -537,12 +537,10 @@ Just delegates OPERATION and ARGS for all operations except for`shell-command`'. (projectile-test-with-sandbox (projectile-test-with-files ("project/" - "project/.git/" "project/existing.txt") (let ((default-directory (file-truename (expand-file-name "project/"))) (projectile-git-use-fd nil) - (projectile-fd-executable nil) - (projectile-indexing-method 'alien)) + (projectile-fd-executable nil)) ;; Initialize a real git repo, commit a file, then delete it without staging (call-process "git" nil nil nil "init") (call-process "git" nil nil nil "config" "user.email" "test@test.com") |
