Skip to content

Commit b919e33

Browse files
author
Bozhidar Batsov
committed
[Fix #578] Simplify nREPL boot command
The use of `cd` is redundant as let-binding `default-directory` has the same effect anyways.
1 parent 6419409 commit b919e33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cider.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ start the server."
119119
cider-lein-parameters)))
120120
(when (nrepl-check-for-repl-buffer nil project-dir)
121121
(let* ((nrepl-project-dir project-dir)
122-
(cmd (format "cd %s && %s %s" (or project ".") cider-lein-command cider-lein-parameters))
122+
(cmd (format "%s %s" cider-lein-command cider-lein-parameters))
123123
(default-directory (or project-dir default-directory))
124124
(nrepl-buffer-name (generate-new-buffer-name
125125
(nrepl-server-buffer-name)))
@@ -137,7 +137,7 @@ start the server."
137137
(with-current-buffer (process-buffer process)
138138
(setq nrepl-project-dir project-dir))
139139
(message "Starting nREPL server..."))))
140-
(message "The lein executable isn't on your exec-path or set absolutely as cider-lein-command")))
140+
(message "The %s executable (specified by `cider-lein-command') isn't on your exec-path" cider-lein-command)))
141141

142142
(defun cider-known-endpoint-candidates ()
143143
"Known endpoint candidates for establishing an nREPL connection.

0 commit comments

Comments
 (0)