Fix Windows git commit ValueError: embedded null character.

Use git commit -F and strip NULs from argv/version strings (0.3.7).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
mihailkudravcev
2026-07-24 13:23:32 +03:00
parent dc8be1bd1a
commit 98cbb88461
6 changed files with 66 additions and 13 deletions
+3 -1
View File
@@ -297,7 +297,9 @@ def cmd_push(args: argparse.Namespace) -> int:
message = args.message or (
f"export_1c_help v{__version__}: sync help cfg {stats.config_version} "
f"({stats.pages_written} pages, +{stats.created_count}/~{stats.edited_count}/-{stats.deleted_count})"
f"({stats.pages_written} pages, "
f"+{stats.created_count} ~{stats.edited_count} "
f"={stats.unchanged_count} -{stats.deleted_count})"
)
try:
if not (work / ".git").exists():