Allow user to shallow clone when installing el-get itself.

This commit is contained in:
yewton 2018-01-13 23:50:41 +09:00 committed by Noam Postavsky
parent f64264389c
commit 2e228afce4

View File

@ -49,8 +49,11 @@
;; First clone el-get ;; First clone el-get
(status (status
(call-process (apply #'call-process
git nil `(,buf t) t "--no-pager" "clone" "-v" url package))) `(,git nil (,buf t) t "--no-pager" "clone" "-v"
,@(when (boundp 'el-get-install-shallow-clone)
'("--depth" "1"))
,url ,package))))
(unless (zerop status) (unless (zerop status)
(error "Couldn't clone el-get from the Git repository: %s" url)) (error "Couldn't clone el-get from the Git repository: %s" url))