**Motivations:**
- split script failed after subtree split when optional root files (e.g. .dockerignore) were missing on branch test
**Root causes:**
- git add with a missing path in the list fails entirely and stages nothing; git commit then fails under set -e
**Correctifs:**
- add each copied file only if it exists in the deploy repo; skip commit if index empty
**Evolutions:**
- none
**Pages affectées:**
- setup/split-lecoffre-ng-to-five-repos.sh