We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffddedf commit d283c83Copy full SHA for d283c83
git/util.py
@@ -356,14 +356,14 @@ def remove_password_if_present(cmdline):
356
url = urlsplit(to_parse)
357
# Remove password from the URL if present
358
if url.password is None:
359
- raise ValueError()
+ continue
360
361
edited_url = url._replace(
362
netloc=url.netloc.replace(url.password, "*****"))
363
new_cmdline[index] = urlunsplit(edited_url)
364
except ValueError:
365
# This is not a valid URL
366
- pass
367
return new_cmdline
368
369
0 commit comments