We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c5fbc6 commit af0933cCopy full SHA for af0933c
git/objects/commit.py
@@ -699,13 +699,15 @@ def create_from_tree(
699
trailer_args.append("--trailer")
700
trailer_args.append(f"{key}: {val}")
701
702
- cmd = ["git", "interpret-trailers"] + trailer_args
+ cmd = [repo.git.GIT_PYTHON_GIT_EXECUTABLE, "interpret-trailers"] + trailer_args
703
proc: Git.AutoInterrupt = repo.git.execute( # type: ignore[call-overload]
704
cmd,
705
as_process=True,
706
istream=PIPE,
707
)
708
- message = proc.communicate(str(message).encode())[0].decode("utf8")
+ stdout_bytes, _ = proc.communicate(str(message).encode())
709
+ finalize_process(proc)
710
+ message = stdout_bytes.decode("utf8")
711
# END apply trailers
712
713
# CREATE NEW COMMIT
0 commit comments