Fix repository submodules for the CI
Go to file
Dandaedre 6883130266
Chado/repo-fix/pipeline/head This commit looks good Details
docs: move advanced details out of readme
2026-10-03 23:48:11 +02:00
docs docs: move advanced details out of readme 2026-10-03 23:48:11 +02:00
integration Add submodule URL repair script and Jenkins test pipeline 2026-09-25 10:43:45 +02:00
tests Add Python CI quality and dependency gates 2026-10-03 22:37:33 +02:00
.gitignore Add Python CI quality and dependency gates 2026-10-03 22:37:33 +02:00
Jenkinsfile Add Python CI quality and dependency gates 2026-10-03 22:37:33 +02:00
LICENSE Initial commit 2026-09-25 10:04:34 +02:00
README.md docs: move advanced details out of readme 2026-10-03 23:48:11 +02:00
fix_submodules.py Add Python CI quality and dependency gates 2026-10-03 22:37:33 +02:00
pyproject.toml Add Python CI quality and dependency gates 2026-10-03 22:37:33 +02:00
requirements-ci.txt Add Python CI quality and dependency gates 2026-10-03 22:37:33 +02:00

README.md

repo-fix

version tests test coverage

Normalize Dandaedre Gitea submodule URLs after cloning, pulling, or syncing:

  • .gitmodules uses HTTPS through proxy.dandaedre.com for CI.
  • Local Git configuration uses SSH through git.dandaedre.com.
  • Initialized and nested submodule remotes are updated as well.

The script requires Python 3.10 or newer and Git. It has no runtime Python dependencies and does not fetch repositories or submodules.

Usage

Preview changes first, then apply them:

python3 fix_submodules.py /path/to/repository --dry-run
python3 fix_submodules.py /path/to/repository

The repository path defaults to the current directory and may point anywhere inside a working tree. Repeated runs are safe.

After applying the changes, commit .gitmodules when it changed. Local Git configuration is intentionally not committed. You can then initialize the submodules:

git -C /path/to/repository submodule update --init --recursive

Show the current semantic version with:

python3 fix_submodules.py --version

Development

Run the dependency-free unit suite with:

python3 -m unittest discover -s tests -v

Advanced