mirror of
https://github.com/dimitri/el-get.git
synced 2024-09-29 04:58:53 +08:00
Allow user to shallow clone when installing el-get itself.
This commit is contained in:
parent
f64264389c
commit
2e228afce4
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user