aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md4
-rw-r--r--projectile.el6
2 files changed, 9 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 579dd2a..3b11a48 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,6 +18,10 @@
* [#1540](https://github.com/bbatsov/projectile/pull/1540): Add default `test-suffix` to Angular projects.
* Add a `:project-file` param to `projectile-register-project-type`.
+### Bugs fixed
+
+* [#1377](https://github.com/bbatsov/projectile/issues/1377): Fix `projectile-regenerate-tags` directory.
+
## 2.2.0 (2020-06-10)
### New features
diff --git a/projectile.el b/projectile.el
index ac15200..cf1d7cc 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3431,7 +3431,11 @@ regular expression."
(tags-exclude (projectile-tags-exclude-patterns))
(default-directory project-root)
(tags-file (expand-file-name projectile-tags-file-name))
- (command (format projectile-tags-command tags-file tags-exclude default-directory))
+ (command (format projectile-tags-command
+ tags-file
+ tags-exclude
+ ;; Use directory file name for MSYS2 compatibility.
+ (directory-file-name default-directory)))
shell-output exit-code)
(with-temp-buffer
(setq exit-code