summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorMichael Mercier <michael.mercier@ryax.tech>2021-03-15 18:39:26 +0100
committerMichael Mercier <michael.mercier@ryax.tech>2021-03-15 18:48:34 +0100
commit50cbafc690e5692a16148dbde9de680be70ddbd1 (patch)
treec07b6454aa8bd3050020edcc114d5f33b984f975 /git/cmd.py
parentf7968d136276607115907267b3be89c3ff9acd03 (diff)
downloadgitpython-50cbafc690e5692a16148dbde9de680be70ddbd1.tar.gz
Add more test and remove password also from error logs
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 222a2408..c571c486 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -82,8 +82,8 @@ def handle_process_output(process, stdout_handler, stderr_handler,
line = line.decode(defenc)
handler(line)
except Exception as ex:
- log.error("Pumping %r of cmd(%s) failed due to: %r", name, cmdline, ex)
- raise CommandError(['<%s-pump>' % name] + cmdline, ex) from ex
+ log.error("Pumping %r of cmd(%s) failed due to: %r", name, remove_password_if_present(cmdline), ex)
+ raise CommandError(['<%s-pump>' % name] + remove_password_if_present(cmdline), ex) from ex
finally:
stream.close()