File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a3d77e616bb8455e158c22a379b655437916d404
2
+ refs/heads/master: 7eb35bc2a9dcc0a7cd91fb247d156eb87df25b27
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: a86d9ad15e339ab343a12513f9c90556f677b9ca
5
5
refs/heads/try: 961753763fb87ddcbbccaec4ea87648608d19a58
Original file line number Diff line number Diff line change 15
15
# msys1/msys2 automatically converts `/abs/path1:/abs/path2` into
16
16
# `c:\real\abs\path1;c:\real\abs\path2` (semicolons) if shell thinks
17
17
# the value is list of paths.
18
+ # (if there is only one path, it becomes `c:/real/abs/path`.)
18
19
# this causes great confusion and error: shell and Makefile doesn't like
19
20
# windows paths so it is really error-prone. revert it for peace.
20
21
def normalize_path (v ):
21
- # c:\path -> /c/path
22
- if ':\\ ' in v :
23
- v = '/' + v .replace (':\\ ' , '/' )
24
22
v = v .replace ('\\ ' , '/' )
23
+ # c:/path -> /c/path
24
+ if ':/' in v :
25
+ v = '/' + v .replace (':/' , '/' )
25
26
return v
26
27
27
28
You can’t perform that action at this time.
0 commit comments