branch: elpa/buttercup
commit d264da34644fe34dce27ea7b397e353b40eb7f70
Merge: 87e0c0d f3d6709
Author: Jorgen Schäfer <[email protected]>
Commit: Jorgen Schäfer <[email protected]>
Merge pull request #17 from Fuco1/master
Use relative path when testing for dotfiles in current project
---
buttercup.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buttercup.el b/buttercup.el
index 3b830e0..dcbb86e 100644
--- a/buttercup.el
+++ b/buttercup.el
@@ -621,7 +621,7 @@ current directory."
(dolist (dir (or command-line-args-left '(".")))
(dolist (file (directory-files-recursively dir
"\\`test-\\|-test.el\\'"))
- (when (not (string-match "/\\." file))
+ (when (not (string-match "/\\." (file-relative-name file)))
(load file nil t))))
(buttercup-run))