Reduce git history downloaded with straight.el
When installing straight.el itself.
This commit is contained in:
parent
f5ba3d9498
commit
8df090fb29
1 changed files with 4 additions and 2 deletions
|
@ -126,7 +126,8 @@ uses a straight or package.el command directly).")
|
||||||
((null pin)
|
((null pin)
|
||||||
(funcall call "git" "clone" "--origin" "origin" repo-url repo-dir
|
(funcall call "git" "clone" "--origin" "origin" repo-url repo-dir
|
||||||
"--depth" (number-to-string straight-vc-git-default-clone-depth)
|
"--depth" (number-to-string straight-vc-git-default-clone-depth)
|
||||||
"--branch" straight-repository-branch))
|
"--branch" straight-repository-branch
|
||||||
|
"--single-branch" "--no-tags"))
|
||||||
((integerp straight-vc-git-default-clone-depth)
|
((integerp straight-vc-git-default-clone-depth)
|
||||||
(make-directory repo-dir t)
|
(make-directory repo-dir t)
|
||||||
(let ((default-directory repo-dir))
|
(let ((default-directory repo-dir))
|
||||||
|
@ -134,7 +135,8 @@ uses a straight or package.el command directly).")
|
||||||
(funcall call "git" "checkout" "-b" straight-repository-branch)
|
(funcall call "git" "checkout" "-b" straight-repository-branch)
|
||||||
(funcall call "git" "remote" "add" "origin" repo-url)
|
(funcall call "git" "remote" "add" "origin" repo-url)
|
||||||
(funcall call "git" "fetch" "origin" pin
|
(funcall call "git" "fetch" "origin" pin
|
||||||
"--depth" (number-to-string straight-vc-git-default-clone-depth))
|
"--depth" (number-to-string straight-vc-git-default-clone-depth)
|
||||||
|
"--no-tags")
|
||||||
(funcall call "git" "checkout" "--detach" pin)))))
|
(funcall call "git" "checkout" "--detach" pin)))))
|
||||||
(require 'straight (concat repo-dir "/straight.el"))
|
(require 'straight (concat repo-dir "/straight.el"))
|
||||||
(doom-log "Initializing recipes")
|
(doom-log "Initializing recipes")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue