Only use actual branch names when verifying branch

This commit is contained in:
Johann Visagie
2018-03-01 09:03:20 +01:00
parent efd96e2d95
commit 59eaf3acf9

View File

@@ -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}" ]]
}