chore: Prevent empty commits when registering submodules

This commit is contained in:
Matteo Cherubini 2026-06-12 17:36:38 +02:00
parent 48c107e59c
commit 80c5cc753f

View file

@ -60,7 +60,7 @@ for entry in "${GENOMES[@]}"; do
cd "${WORK_DIR}/${MASTER_REPO}"
git add .gitmodules "${GENOME_NAME}"
git commit -m "chore: register submodule ${GENOME_NAME}"
git diff --cached --quiet || git commit -m "chore: register submodule ${GENOME_NAME}"
git push
# Commit the submodule reference in the master repo