diff --git a/rbtools/postreview.py b/rbtools/postreview.py
index 64d7fa2..a3610ce 100755
--- a/rbtools/postreview.py
+++ b/rbtools/postreview.py
@@ -2242,15 +2242,26 @@ class GitClient(SCMClient):
compatible diffs. This will attempt to generate a diff suitable for the
remote repository, whether git, SVN or Perforce.
"""
+ def __init__(self):
+ SCMClient.__init__(self)
+ # Store the 'correct' way to invoke git, just plain old 'git' by default
+ self.git = 'git'
+
def _strip_heads_prefix(self, ref):
""" Strips prefix from ref name, if possible """
return re.sub(r'^refs/heads/', '', ref)
def get_repository_info(self):
if not check_install('git --help'):
- return None
+ # CreateProcess (launched via subprocess, used by check_install)
+ # does not automatically append .cmd for things it finds in PATH.
+ # If we're on Windows, and this works, save it for further use.
+