mirror of
https://github.com/pyenv/pyenv-update.git
synced 2025-11-08 03:23:48 -05:00
Using full ref name to support older git versions, when verifying the branch
This commit is contained in:
@@ -15,7 +15,7 @@ verify_repo_remote() {
|
||||
}
|
||||
|
||||
verify_repo_branch() {
|
||||
local name="$(cd "$1" && git name-rev --refs='heads/*' --name-only HEAD 2>/dev/null)"
|
||||
local name="$(cd "$1" && git name-rev --refs='refs/heads/*' --name-only HEAD 2>/dev/null)"
|
||||
[[ "${name}" == "${BRANCH}" ]]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user