From 22099c0cea5c22e39955a91c7a6f1a2f6ee4aba7 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 14 Jan 2016 11:59:30 -0500 Subject: [PATCH] use origin for comparison, not local Signed-off-by: Alfredo Deza --- ceph-pr-commits/build/test_commits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceph-pr-commits/build/test_commits.py b/ceph-pr-commits/build/test_commits.py index a4bf6e28..c4a3e0f7 100644 --- a/ceph-pr-commits/build/test_commits.py +++ b/ceph-pr-commits/build/test_commits.py @@ -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'): -- 2.47.3