Skip to content

Commit 08d1a81

Browse files
committed
Simplified.
No need to call `cd-absolute`. It's probably better to supply the DRUPAL_ROOT as a parameter to drush.
1 parent 56ef6b5 commit 08d1a81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drupal-mode.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,8 @@ of the project)."
360360
drupal-drush-program)
361361
(let ((root drupal-rootdir))
362362
(with-temp-buffer
363-
(cd-absolute root)
364363
(message "Clearing all caches...")
365-
(call-process drupal-drush-program nil nil nil "cache-clear" "all")
364+
(call-process drupal-drush-program nil nil nil (concat "--root=" (expand-file-name root)) "cache-clear" "all")
366365
(message "Clearing all caches...done")))
367366
(message "Can't clear caches. No DRUPAL_ROOT and/or no drush command.")))
368367

0 commit comments

Comments
 (0)