branch: elpa/drupal-mode
commit 08d1a815ba50d2f586aa6aaae5c35a3f2a92d831
Author: Arne Jørgensen <[email protected]>
Commit: Arne Jørgensen <[email protected]>
Simplified.
No need to call `cd-absolute`. It's probably better to supply the
DRUPAL_ROOT as a parameter to drush.
---
drupal-mode.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index 40cdbee5fa..6f9a94fbaa 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -360,9 +360,8 @@ of the project)."
drupal-drush-program)
(let ((root drupal-rootdir))
(with-temp-buffer
- (cd-absolute root)
(message "Clearing all caches...")
- (call-process drupal-drush-program nil nil nil "cache-clear" "all")
+ (call-process drupal-drush-program nil nil nil (concat "--root="
(expand-file-name root)) "cache-clear" "all")
(message "Clearing all caches...done")))
(message "Can't clear caches. No DRUPAL_ROOT and/or no drush command.")))