| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 91b9bc4 commit b4459ca
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,8 @@ | |||
| 37 | 37 | except ImportError: | |
| 38 | 38 | import mock | |
| 39 | 39 | ||
| 40 | + from git.compat import is_win | ||
| 41 | + | ||
| 40 | 42 | ||
| 41 | 43 | class TestGit(TestBase): | |
| 42 | 44 | ||
@@ -177,7 +179,8 @@ def test_refresh(self): | |||
| 177 | 179 | self.assertRaises(GitCommandNotFound, refresh, "yada") | |
| 178 | 180 | ||
| 179 | 181 | # test a good path refresh | |
| 180 | - 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() | ||
| 181 | 184 | refresh(path) | |
| 182 | 185 | ||
| 183 | 186 | def test_options_are_passed_to_git(self): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments