| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7c5fbc6 commit af0933c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -699,13 +699,15 @@ def create_from_tree( | |||
| 699 | 699 | trailer_args.append("--trailer") | |
| 700 | 700 | trailer_args.append(f"{key}: {val}") | |
| 701 | 701 | ||
| 702 | - cmd = ["git", "interpret-trailers"] + trailer_args | ||
| 702 | + cmd = [repo.git.GIT_PYTHON_GIT_EXECUTABLE, "interpret-trailers"] + trailer_args | ||
| 703 | 703 | proc: Git.AutoInterrupt = repo.git.execute( # type: ignore[call-overload] | |
| 704 | 704 | cmd, | |
| 705 | 705 | as_process=True, | |
| 706 | 706 | istream=PIPE, | |
| 707 | 707 | ) | |
| 708 | - message = proc.communicate(str(message).encode())[0].decode("utf8") | ||
| 708 | + stdout_bytes, _ = proc.communicate(str(message).encode()) | ||
| 709 | + finalize_process(proc) | ||
| 710 | + message = stdout_bytes.decode("utf8") | ||
| 709 | 711 | # END apply trailers | |
| 710 | 712 | ||
| 711 | 713 | # CREATE NEW COMMIT | |
| Back | FazBrowse Home | New Git URL |
0 commit comments