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

pull/2601/head
yewton 2018-01-13 23:50:41 +09:00 committed by Noam Postavsky
parent f64264389c
commit 2e228afce4
1 changed files with 5 additions and 2 deletions

View File

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