From 59eaf3acf9bdcde90d12427fc12664ae3cb89c1f Mon Sep 17 00:00:00 2001 From: Johann Visagie Date: Thu, 1 Mar 2018 09:03:20 +0100 Subject: [PATCH] Only use actual branch names when verifying branch --- bin/pyenv-update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}" ]] }