parent
364e74a96b
commit
b0741336d1
1 changed files with 11 additions and 0 deletions
|
@ -124,6 +124,17 @@ uses a straight or package.el command directly).")
|
||||||
(lambda (&rest args)
|
(lambda (&rest args)
|
||||||
(message "%s" (cdr (apply #'doom-call-process args)))))))
|
(message "%s" (cdr (apply #'doom-call-process args)))))))
|
||||||
(unless (file-directory-p repo-dir)
|
(unless (file-directory-p repo-dir)
|
||||||
|
(save-match-data
|
||||||
|
(unless (executable-find "git")
|
||||||
|
(user-error "Git isn't present on your system. Cannot proceed."))
|
||||||
|
(let* ((version (cdr (doom-call-process "git" "version")))
|
||||||
|
(version
|
||||||
|
(and (string-match "\\_<[0-9]+\\.[0-9]+\\(\\.[0-9]+\\)\\_>" version)
|
||||||
|
(match-string 0 version))))
|
||||||
|
(if version
|
||||||
|
(when (version< version "2.28")
|
||||||
|
(user-error "Git %s detected! Doom requires git 2.28 or newer!"
|
||||||
|
version)))))
|
||||||
(print! (start "Installing straight..."))
|
(print! (start "Installing straight..."))
|
||||||
(print-group!
|
(print-group!
|
||||||
(cl-destructuring-bind (depth . options)
|
(cl-destructuring-bind (depth . options)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue