diff options
Diffstat (limited to 'git_command.py')
-rw-r--r-- | git_command.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/git_command.py b/git_command.py index 55216b1c..04844079 100644 --- a/git_command.py +++ b/git_command.py | |||
@@ -238,9 +238,9 @@ def _build_env( | |||
238 | s = p + " " + s | 238 | s = p + " " + s |
239 | env["GIT_CONFIG_PARAMETERS"] = s | 239 | env["GIT_CONFIG_PARAMETERS"] = s |
240 | if "GIT_ALLOW_PROTOCOL" not in env: | 240 | if "GIT_ALLOW_PROTOCOL" not in env: |
241 | env[ | 241 | env["GIT_ALLOW_PROTOCOL"] = ( |
242 | "GIT_ALLOW_PROTOCOL" | 242 | "file:git:http:https:ssh:persistent-http:persistent-https:sso:rpc" |
243 | ] = "file:git:http:https:ssh:persistent-http:persistent-https:sso:rpc" | 243 | ) |
244 | env["GIT_HTTP_USER_AGENT"] = user_agent.git | 244 | env["GIT_HTTP_USER_AGENT"] = user_agent.git |
245 | 245 | ||
246 | if objdir: | 246 | if objdir: |
@@ -350,9 +350,9 @@ class GitCommand: | |||
350 | "Project": e.project, | 350 | "Project": e.project, |
351 | "CommandName": command_name, | 351 | "CommandName": command_name, |
352 | "Message": str(e), | 352 | "Message": str(e), |
353 | "ReturnCode": str(e.git_rc) | 353 | "ReturnCode": ( |
354 | if e.git_rc is not None | 354 | str(e.git_rc) if e.git_rc is not None else None |
355 | else None, | 355 | ), |
356 | "IsError": log_as_error, | 356 | "IsError": log_as_error, |
357 | } | 357 | } |
358 | ) | 358 | ) |