Fix void-symbol: straight-vc-git-default-branch error
Was removed in raxod502/straight.el@a7251a3
This commit is contained in:
parent
6dc84f1671
commit
e4563e9b02
1 changed files with 2 additions and 4 deletions
|
@ -79,8 +79,7 @@ Grabs the latest commit id of the package using 'git'."
|
||||||
(or (doom--package-at-point)
|
(or (doom--package-at-point)
|
||||||
(user-error "Not on a `package!' call"))
|
(user-error "Not on a `package!' call"))
|
||||||
(let* ((recipe (doom--package-full-recipe package plist))
|
(let* ((recipe (doom--package-full-recipe package plist))
|
||||||
(branch (or (plist-get recipe :branch)
|
(branch (plist-get recipe :branch))
|
||||||
straight-vc-git-default-branch))
|
|
||||||
(oldid (or (plist-get plist :pin)
|
(oldid (or (plist-get plist :pin)
|
||||||
(doom-package-get package :pin)))
|
(doom-package-get package :pin)))
|
||||||
(url (straight-vc-git--destructure recipe (upstream-repo upstream-host)
|
(url (straight-vc-git--destructure recipe (upstream-repo upstream-host)
|
||||||
|
@ -88,8 +87,7 @@ Grabs the latest commit id of the package using 'git'."
|
||||||
(id (or (when url
|
(id (or (when url
|
||||||
(cdr (doom-call-process
|
(cdr (doom-call-process
|
||||||
"git" "ls-remote" url
|
"git" "ls-remote" url
|
||||||
(unless select
|
(unless select branch))))
|
||||||
(or branch straight-vc-git-default-branch)))))
|
|
||||||
(user-error "Couldn't find a recipe for %s" package)))
|
(user-error "Couldn't find a recipe for %s" package)))
|
||||||
(id (car (split-string
|
(id (car (split-string
|
||||||
(if select
|
(if select
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue