| Index: sky/tools/webkitpy/common/checkout/scm/git.py
|
| diff --git a/sky/tools/webkitpy/common/checkout/scm/git.py b/sky/tools/webkitpy/common/checkout/scm/git.py
|
| index 9f0571880a02f5a4941af7ca510ed2cf991cc996..909bd8ccd1141df0c6b11d7e7a74f8ab3c85ffda 100644
|
| --- a/sky/tools/webkitpy/common/checkout/scm/git.py
|
| +++ b/sky/tools/webkitpy/common/checkout/scm/git.py
|
| @@ -138,6 +138,9 @@ class Git(SCM):
|
|
|
| def _upstream_branch(self):
|
| current_branch = self.current_branch()
|
| + # If the remote is pointing to something other than "." than the upstream branch isn't a local branch.
|
| + if self.read_git_config('branch.%s.remote' % current_branch, cwd=self.checkout_root, executive=self._executive) != ".":
|
| + return None
|
| return self._branch_from_ref(self.read_git_config('branch.%s.merge' % current_branch, cwd=self.checkout_root, executive=self._executive).strip())
|
|
|
| def _merge_base(self, git_commit=None):
|
| @@ -157,6 +160,10 @@ class Git(SCM):
|
| git_commit = git_commit + "^.." + git_commit
|
| return git_commit
|
|
|
| + upstream = self._upstream_branch()
|
| + if upstream:
|
| + return upstream
|
| +
|
| return self._remote_merge_base()
|
|
|
| def changed_files(self, git_commit=None):
|
|
|