Skip to content

Commit e0f70de

Browse files
committed
Fix S607 start-process-with-partial-path
1 parent 39fb100 commit e0f70de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cherry_picker/test_cherry_picker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def tmp_git_repo_dir(tmpdir, cd, git_init, git_commit, git_config):
133133
try:
134134
git_init()
135135
except subprocess.CalledProcessError:
136-
version = subprocess.run(("git", "--version"), capture_output=True)
136+
git_version_cmd = "git", "--version"
137+
version = subprocess.run(git_version_cmd, capture_output=True)
137138
# the output looks like "git version 2.34.1"
138139
v = version.stdout.decode("utf-8").removeprefix("git version ").split(".")
139140
if (int(v[0]), int(v[1])) < (2, 28):

0 commit comments

Comments
 (0)