mirror of
https://github.com/correl/melpa.git
synced 2024-12-22 19:17:27 +00:00
Provide :branch for git recipes
See https://github.com/cask/cask/issues/136
This commit is contained in:
parent
c9c7e5b936
commit
56116ebaf7
1 changed files with 4 additions and 1 deletions
|
@ -372,7 +372,10 @@ Return a cons cell whose `car' is the root and whose `cdr' is the repository."
|
|||
(defun pb/checkout-git (name config dir)
|
||||
"Check package NAME with config CONFIG out of git into DIR."
|
||||
(let ((repo (plist-get config :url))
|
||||
(commit (plist-get config :commit)))
|
||||
(commit (or (plist-get config :commit)
|
||||
(let ((branch (plist-get config :branch)))
|
||||
(when branch
|
||||
(concat "origin/" branch))))))
|
||||
(with-current-buffer (get-buffer-create "*package-build-checkout*")
|
||||
(goto-char (point-max))
|
||||
(cond
|
||||
|
|
Loading…
Reference in a new issue