mirror of
https://github.com/correl/melpa.git
synced 2024-11-22 19:18:39 +00:00
default head branch to "master"
This commit is contained in:
parent
87346e3cc1
commit
e20c3159ec
1 changed files with 4 additions and 2 deletions
|
@ -296,8 +296,10 @@ Return a cons cell whose `car' is the root and whose `cdr' is the repository."
|
|||
|
||||
(defun pb/git-head-branch (dir)
|
||||
"Get the current git repo for DIR."
|
||||
(pb/run-process-match
|
||||
"HEAD branch: \\(.*\\)" dir "git" "remote" "show" "origin"))
|
||||
(or (ignore-errors
|
||||
(pb/run-process-match
|
||||
"HEAD branch: \\(.*\\)" dir "git" "remote" "show" "origin"))
|
||||
"master"))
|
||||
|
||||
(defun pb/checkout-git (name config dir)
|
||||
"Check package NAME with config CONFIG out of git into DIR."
|
||||
|
|
Loading…
Reference in a new issue