mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 13:08:51 +08:00
el-get-git-compute-checksum: don't call cd
in a temp buffer, just let-bind default-directory.
This commit is contained in:
parent
fe2533e234
commit
4e825ca5e4
|
@ -198,8 +198,7 @@ not return 'smart' headers despite supporting shallow clones"
|
|||
|
||||
(defun el-get-git-compute-checksum (package)
|
||||
"Return the hash of the checked-out revision of PACKAGE."
|
||||
(with-temp-buffer
|
||||
(cd (el-get-package-directory package))
|
||||
(let ((default-directory (el-get-package-directory package)))
|
||||
;; We cannot simply check the recipe for `:type git' because it
|
||||
;; could also be github, emacsmirror, or any other unknown git-ish
|
||||
;; type. Instead, we check for the existence of a ".git" directory
|
||||
|
|
Loading…
Reference in New Issue
Block a user