]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use HEAD for comparing commits 294/head
authorAlfredo Deza <adeza@redhat.com>
Thu, 14 Jan 2016 12:36:44 +0000 (07:36 -0500)
committerAlfredo Deza <adeza@redhat.com>
Thu, 14 Jan 2016 12:36:44 +0000 (07:36 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-pr-commits/build/test_commits.py

index 6292bbf1f5c8cc1030966775c7f4db5a83eaa121..a4bf6e288f4cc2a1e627a521dfec5d18d1105787 100644 (file)
@@ -30,7 +30,8 @@ def run(command):
 
 def get_commits():
     target_branch = os.getenv('ghprbTargetBranch', 'origin/master')
-    source_branch = os.getenv('ghprbSourceBranch', 'HEAD')
+    # 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)]
     output = run(command)
     chunked_commits = []