Travisci appears to work in a detached head, but commands like ``git symbolic-ref --short HEAD`` return ``HEAD`` instead of ``master`` in detached head states. At least if we're in travisci this should work.
https://stackoverflow.com/questions/
6245570/how-to-get-the-current-branch-name-in-git
}
find_branch() {
- CURRENT_BRANCH=$(current_git_branch)
+ if [ -z ${TRAVIS_BRANCH} ]; then
+ CURRENT_BRANCH=$(current_git_branch)
+ else
+ CURRENT_BRANCH=${TRAVIS_BRANCH}
+ fi
}
checksum_url() {