diff --git a/bin/pyenv-update b/bin/pyenv-update index 1d64bfc..9ca9d47 100755 --- a/bin/pyenv-update +++ b/bin/pyenv-update @@ -15,7 +15,7 @@ verify_repo_remote() { } verify_repo_branch() { - local name="$(cd "$1" && git name-rev --name-only HEAD 2>/dev/null)" + local name="$(cd "$1" && git name-rev --refs='heads/*' --name-only HEAD 2>/dev/null)" [[ "${name}" == "${BRANCH}" ]] }