From: Alfredo Deza Date: Thu, 14 Jan 2016 12:36:44 +0000 (-0500) Subject: use HEAD for comparing commits X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F294%2Fhead;p=ceph-build.git use HEAD for comparing commits Signed-off-by: Alfredo Deza --- diff --git a/ceph-pr-commits/build/test_commits.py b/ceph-pr-commits/build/test_commits.py index 6292bbf1..a4bf6e28 100644 --- a/ceph-pr-commits/build/test_commits.py +++ b/ceph-pr-commits/build/test_commits.py @@ -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 = []