mirror of
https://github.com/correl/melpa.git
synced 2024-11-24 19:19:52 +00:00
Don't bind default-directory to working-dir on checkout
This reverts commitsd7f413f
andbf2d52b
See #1444
This commit is contained in:
parent
70192e912a
commit
f30a6707a6
1 changed files with 2 additions and 7 deletions
|
@ -149,10 +149,6 @@ function for access to this function")
|
||||||
"In DIR (or `default-directory' if unset) run COMMAND with ARGS.
|
"In DIR (or `default-directory' if unset) run COMMAND with ARGS.
|
||||||
Output is written to the current buffer."
|
Output is written to the current buffer."
|
||||||
(let* ((default-directory (or dir default-directory))
|
(let* ((default-directory (or dir default-directory))
|
||||||
(default-directory
|
|
||||||
(if (file-directory-p default-directory)
|
|
||||||
(concat (directory-file-name default-directory) "/")
|
|
||||||
default-directory))
|
|
||||||
(have-timeout (executable-find "timeout"))
|
(have-timeout (executable-find "timeout"))
|
||||||
(argv (if have-timeout
|
(argv (if have-timeout
|
||||||
(append (list "timeout" "-k" "60" "600" command) args)
|
(append (list "timeout" "-k" "60" "600" command) args)
|
||||||
|
@ -182,9 +178,8 @@ CONFIG, if any, or `package-build-default-files-spec' otherwise."
|
||||||
(pb/message "Fetcher: %s" repo-type)
|
(pb/message "Fetcher: %s" repo-type)
|
||||||
(unless (eq 'wiki repo-type)
|
(unless (eq 'wiki repo-type)
|
||||||
(pb/message "Source: %s\n" (or (plist-get config :repo) (plist-get config :url))))
|
(pb/message "Source: %s\n" (or (plist-get config :repo) (plist-get config :url))))
|
||||||
(let ((default-directory working-dir))
|
|
||||||
(funcall (intern (format "pb/checkout-%s" repo-type))
|
(funcall (intern (format "pb/checkout-%s" repo-type))
|
||||||
package-name config working-dir))))
|
package-name config working-dir)))
|
||||||
|
|
||||||
(defvar pb/last-wiki-fetch-time 0
|
(defvar pb/last-wiki-fetch-time 0
|
||||||
"The time at which an emacswiki URL was last requested.
|
"The time at which an emacswiki URL was last requested.
|
||||||
|
|
Loading…
Reference in a new issue