| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -330,8 +330,7 @@ def polish_url(cls, url, is_cygwin=None): | |||
| 330 | 330 | but git stops liking them as it will escape the backslashes. | |
| 331 | 331 | Hence we undo the escaping just to be sure. | |
| 332 | 332 | """ | |
| 333 | - if url.startswith('$HOME/'): | ||
| 334 | - url = url.replace('$HOME/', '~/') | ||
| 333 | + url = os.path.expandvars(url) | ||
| 335 | 334 | if url.startswith('~'): | |
| 336 | 335 | url = os.path.expanduser(url) | |
| 337 | 336 | url = url.replace("\\\\", "\\").replace("\\", "/") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments