patch-git: Add --no-decorate to git log invocation (RHEL-141925)

Sync patch-git git log invocation with konflux-ci/rpmbuild-pipeline-environment-container,
specifically this commit:

commit 5753986ec0689bd83d8fd40f179186a1aa99ed9a
Author: Pavel Raiskup <pavel@raiskup.cz>
Date:   Fri Dec 19 15:25:01 2025 +0100

    Add patch-git support

    Follow the instructions in https://github.com/konflux-ci/rpmbuild-pipeline/issues/112

<5753986ec0>

Resolves: RHEL-141925
RPM-Changelog: -
RPM-Skip-Release: yes
This commit is contained in:
Florian Weimer 2026-01-27 13:44:40 +01:00
parent 89305a5e30
commit 7da8fd8c51

View File

@ -535,8 +535,8 @@ local function generate_files()
-- patch depth sorting below). To include committer dates, use
-- --pretty=fuller.
check_git(
'log --first-parent --no-renames --raw --pretty=fuller --date=default > '
.. git_log_file)
'log --first-parent --no-decorate --no-renames --raw --pretty=fuller'
.. ' --date=default > ' .. git_log_file)
-- Atomically replace the contents of git_commit_file, confirming that
-- the new Git log has been written.