summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Halchenko <debian@onerussian.com>2017-11-28 13:14:10 -0500
committerYaroslav Halchenko <debian@onerussian.com>2017-11-28 13:14:15 -0500
commit4d851a6f3885ec24a963a206f77790977fd2e6c5 (patch)
treea4b665c40a43e1201d97407b9a3504609e5c10a5
parentcc340779c5cd6efb6ac3c8d21141638970180f41 (diff)
downloadgitpython-4d851a6f3885ec24a963a206f77790977fd2e6c5.tar.gz
BF(WIN): where could report multiple hits, so choose first
-rw-r--r--git/test/test_git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py
index 21ef52da..059f90c0 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -180,7 +180,7 @@ class TestGit(TestBase):
# test a good path refresh
which_cmd = "where" if is_win else "which"
- path = os.popen("{0} git".format(which_cmd)).read().strip()
+ path = os.popen("{0} git".format(which_cmd)).read().strip().split('\n')[0]
refresh(path)
def test_options_are_passed_to_git(self):