diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2019-02-25 12:21:36 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2019-02-25 13:14:13 -0500 |
commit | 4dbea5ed56d85b291fdf373a4100fce17704229b (patch) | |
tree | 8b26abf3d0ef8a0af493f310ee5808e9e5965f83 /buildscripts/linter | |
parent | 31a22be1ad2db8e5ea1688e9f51e4932c013e5ec (diff) | |
download | mongo-4dbea5ed56d85b291fdf373a4100fce17704229b.tar.gz |
SERVER-39309 - Fix linter calls to get_merge_base
Diffstat (limited to 'buildscripts/linter')
-rw-r--r-- | buildscripts/linter/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/linter/git.py b/buildscripts/linter/git.py index d1c5b4bfad1..3ed0725ed43 100644 --- a/buildscripts/linter/git.py +++ b/buildscripts/linter/git.py @@ -105,7 +105,7 @@ class Repo(_git.Repository): # 2. Cached/Staged files (--cached) # 3. Working Tree files git tracks - fork_point = self.get_merge_base(origin_branch) + fork_point = self.get_merge_base(["HEAD", origin_branch]) diff_files = self.git_diff(["--name-only", "%s..HEAD" % (fork_point)]) diff_files += self.git_diff(["--name-only", "--cached"]) |