From 72dacab03bf014ff0ddacb2e8c9d6bde9e85f29c Mon Sep 17 00:00:00 2001 From: xavierk Date: Tue, 15 Sep 2026 16:45:08 +0530 Subject: [PATCH] Configure XBPS release committer --- scripts/xbps-publish.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/xbps-publish.sh b/scripts/xbps-publish.sh index 9147d22..ae69440 100755 --- a/scripts/xbps-publish.sh +++ b/scripts/xbps-publish.sh @@ -95,6 +95,13 @@ PKGVER="fenris-${VERSION}_${REVISION}" XBPS_FILE="${PKGVER}.${ARCH}.xbps" SOURCE_DIR=$(pwd) XBPS_PATH="${SOURCE_DIR}/${XBPS_FILE}" +GIT_USER_NAME=$(git config user.name || true) +GIT_USER_EMAIL=$(git config user.email || true) + +if [[ -z "$GIT_USER_NAME" || -z "$GIT_USER_EMAIL" ]]; then + echo "ERROR: Configure git user.name and user.email in the source repository before publishing" >&2 + exit 1 +fi echo "=== Fenris XBPS Publication v${VERSION} ===" echo "" @@ -121,6 +128,8 @@ echo "" echo "--- Prepare distribution repository ---" WORK_DIR=$(mktemp -d) _run "git clone ${GITEA_URL}/${GITEA_OWNER}/${GITEA_REPO}.git ${WORK_DIR}" +_run "git -C ${WORK_DIR} config user.name '${GIT_USER_NAME}'" +_run "git -C ${WORK_DIR} config user.email '${GIT_USER_EMAIL}'" _run "git -C ${WORK_DIR} checkout ${GITEA_BRANCH}" _run "mkdir -p ${WORK_DIR}/${ARCH}" echo ""