Skip to content

Commit 4d851a6

Browse files
committed
BF(WIN): where could report multiple hits, so choose first
1 parent cc34077 commit 4d851a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/test/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_refresh(self):
180180

181181
# test a good path refresh
182182
which_cmd = "where" if is_win else "which"
183-
path = os.popen("{0} git".format(which_cmd)).read().strip()
183+
path = os.popen("{0} git".format(which_cmd)).read().strip().split('\n')[0]
184184
refresh(path)
185185

186186
def test_options_are_passed_to_git(self):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy