Fix Travis for PRs against non-master (like release, for example)

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
Tianon Gravi
2014-01-18 10:41:37 -07:00
parent dc359e07d3
commit 980e0bf52c
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ if 'TRAVIS' not in os.environ:
exit(127)
if os.environ['TRAVIS_PULL_REQUEST'] != 'false':
commit_range = [os.environ['TRAVIS_BRANCH'], 'FETCH_HEAD']
commit_range = ['upstream/' + os.environ['TRAVIS_BRANCH'], 'FETCH_HEAD']
else:
try:
subprocess.check_call([