mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Fix branch detection on Travis
This commit is contained in:
parent
4118b89139
commit
289885e8c0
@ -17,7 +17,7 @@ if build == 'Doc':
|
||||
travis = 'TRAVIS' in os.environ
|
||||
# Install dependencies.
|
||||
if travis:
|
||||
branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).strip()
|
||||
branch = os.environ['TRAVIS_BRANCH']
|
||||
if branch != 'master':
|
||||
print('Branch: ' + branch)
|
||||
exit(0) # Ignore non-master branches
|
||||
|
Loading…
Reference in New Issue
Block a user