We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91b9bc4 commit b4459caCopy full SHA for b4459ca
git/test/test_git.py
@@ -37,6 +37,8 @@
37
except ImportError:
38
import mock
39
40
+from git.compat import is_win
41
+
42
43
class TestGit(TestBase):
44
@@ -177,7 +179,8 @@ def test_refresh(self):
177
179
self.assertRaises(GitCommandNotFound, refresh, "yada")
178
180
181
# test a good path refresh
- path = os.popen("which git").read().strip()
182
+ which_cmd = "where" if is_win else "which"
183
+ path = os.popen("{0} git".format(which_cmd)).read().strip()
184
refresh(path)
185
186
def test_options_are_passed_to_git(self):
0 commit comments