]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use origin for comparison, not local 296/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 14 Jan 2016 16:59:30 +0000 (11:59 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 14 Jan 2016 16:59:30 +0000 (11:59 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-pr-commits/build/test_commits.py

index a4bf6e288f4cc2a1e627a521dfec5d18d1105787..c4a3e0f727284236da1684a14b10ba11c500c554 100644 (file)
@@ -29,10 +29,10 @@ def run(command):
 
 
 def get_commits():
-    target_branch = os.getenv('ghprbTargetBranch', 'origin/master')
+    target_branch = os.getenv('ghprbTargetBranch', 'master')
     # we use 'HEAD' here because the PR is already checked out on the right branch
     source_branch = 'HEAD'
-    command = ['git', 'log', '--no-merges', '%s..%s' % (target_branch, source_branch)]
+    command = ['git', 'log', '--no-merges', 'origin/%s..%s' % (target_branch, source_branch)]
     output = run(command)
     chunked_commits = []
     for chunk in output.split('\n\ncommit'):