From b110731d5a1eb755e9d6022106a063483247c97c Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 14 Jan 2016 07:36:44 -0500 Subject: [PATCH] use HEAD for comparing commits Signed-off-by: Alfredo Deza --- ceph-pr-commits/build/test_commits.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = [] -- 2.39.5