On 11/6/26 2:13 PM, Oleg Tolmatcev wrote:
everal scripts construct Git repository paths with os.path and pass
command strings through a shell. On Windows, this can produce
backslash-separated paths in ChangeLog entries, while shell parsing
makes subprocess arguments platform-dependent.
Use posixpath for repository paths, pass argument lists directly to
subprocess functions, and run Python helpers with sys.executable.
Also remove unreachable code from find_changelog.
contrib/ChangeLog:
* gcc-changelog/git_commit.py: Use posixpath for repository paths.
* git-backport.py: Pass argument lists to subprocess.run and use
sys.executable.
* git-commit-mklog.py: Pass an argument list to subprocess.run.
* git-fix-changelog.py: Pass argument lists to subprocess functions
and use sys.executable.
* mklog.py: Use posixpath for repository paths. Pass argument lists
to subprocess functions. Remove unreachable code.
Signed-off-by: Oleg Tolmatcev<[email protected]>
LGTM and no concerns from Sashiko. I've pushed both patches in this
series to the trunk.
jeff