Skip to content

Commit

Permalink
Allow user to shallow clone when installing el-get itself.
Browse files Browse the repository at this point in the history
  • Loading branch information
yewton authored and npostavs committed Jan 26, 2018
1 parent f642643 commit 2e228af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions el-get-install.el
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2e228af

Please sign in to comment.