el-get-git-compute-checksum: don't call cd

in a temp buffer, just let-bind default-directory.
This commit is contained in:
Noam Postavsky 2015-03-04 14:54:22 -05:00
parent fe2533e234
commit 4e825ca5e4

View File

@ -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