summaryrefslogtreecommitdiffstats
path: root/git_command.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2025-03-25 12:53:55 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2025-03-25 11:20:35 -0700
commitcd391e77d0462b2768f4f5deb5954a6f456047e9 (patch)
tree0a8aa39a5d281d37855f328d2c6ebd4b240e8f4a /git_command.py
parent8310436be083f8268bf8325bb2ffb65e9e178f6f (diff)
downloadgit-repo-cd391e77d0462b2768f4f5deb5954a6f456047e9.tar.gz
black: update to v25
Requires a little reformatting in the tree. Change-Id: Iaa40fe0dfca372c49c04cc26edccb5f7b0c2a8ad Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/462883 Commit-Queue: Mike Frysinger <vapier@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'git_command.py')
-rw-r--r--git_command.py12
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 )