From 289885e8c02b882f5bdfb036abd1b6b591b475b0 Mon Sep 17 00:00:00 2001 From: vitaut Date: Mon, 23 Nov 2015 08:47:46 -0800 Subject: [PATCH] Fix branch detection on Travis --- support/travis-build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/travis-build.py b/support/travis-build.py index 84fb4db1..dd74ed66 100755 --- a/support/travis-build.py +++ b/support/travis-build.py @@ -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