Merge pull request #4 from wjv/skiptags

Only use actual branch names when verifying branch
This commit is contained in:
Josh Friend 2018-03-04 11:04:53 -05:00 committed by GitHub
commit 442d1b86da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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