[skip-ci] Packit: Fix action script for fetching upstream commit

This fixes multiple trailing quotes after the commit and also ensures
the older commit id will be correctly replaced by the newer id.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2025-03-12 17:36:25 +05:30
parent ac3074e90e
commit 6ea7b192fa
No known key found for this signature in database
GPG Key ID: 1C1EDD7CC7C3A0DD
1 changed files with 1 additions and 1 deletions

View File

@ -14,4 +14,4 @@ SPEC_FILE=rpm/$PACKAGE.spec
GIT_COMMIT=$(git rev-parse HEAD)
# Update LDFLAGS to show commit id for Copr builds
sed -i "s/^GIT_COMMIT=*/GIT_COMMIT=\"$GIT_COMMIT\"/" $SPEC_FILE
sed -i "s/^GIT_COMMIT=.*/GIT_COMMIT=\"$GIT_COMMIT\"/" $SPEC_FILE