read_git_branch

documenteer.sphinxconfig.utils.read_git_branch()

Obtain the current branch name from the Git repository. If on Travis CI, use the TRAVIS_BRANCH environment variable.