Skip to content

Commit 6ea7b19

Browse files
committed
[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 <[email protected]>
1 parent ac3074e commit 6ea7b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.packit-rpm-git-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ SPEC_FILE=rpm/$PACKAGE.spec
1414
GIT_COMMIT=$(git rev-parse HEAD)
1515

1616
# Update LDFLAGS to show commit id for Copr builds
17-
sed -i "s/^GIT_COMMIT=*/GIT_COMMIT=\"$GIT_COMMIT\"/" $SPEC_FILE
17+
sed -i "s/^GIT_COMMIT=.*/GIT_COMMIT=\"$GIT_COMMIT\"/" $SPEC_FILE

0 commit comments

Comments
 (0)