This is a guide to understand git-repo. Scripts in ERPLibre use git-repo automatically.
git-repo of Google is used to manage all git repositories under licence Apache-2.0.
curl https://storage.googleapis.com/git-repo-downloads/repo > ./.venv/repo./.venv/repo init -u https://github.com/ERPLibre/ERPLibre -b master
./.venv/repo sync./.venv/repo init -u https://github.com/ERPLibre/ERPLibre -b 12.0_repo -m ./manifest/default.dev.xml
./.venv/repo syncgit daemon --base-path=. --export-all --reuseaddr --informative-errors --verbose &
./.venv/repo init -u git://127.0.0.1:9418/ -b $(git rev-parse --abbrev-ref HEAD) -m ./manifest/default.dev.xml
./.venv/repo sync -m ./manifest/default.dev.xmlA Manifest, is an XML file managed by git-repo to generate a repo.
It freezes all repo, from dev to prod.
This will add revision git hash in the manifest.
./.venv/repo manifest -r -o ./default.xmlCommit.
git commit -am "[#ticket] subject: short sentence"When dev contains specific revision with default revision, you need to replace default revision with prod revision and keep specific version:
./script/git/git_merge_repo_manifest.py --input1 ./manifest/default.dev.xml --input2 ./default.xml --output ./manifest/default.staged.xml
git commit -am "Updated manifest/default.staged.xml"
git daemon --base-path=. --export-all --reuseaddr --informative-errors --verbose &
./.venv/repo init -u git://127.0.0.1:9418/ -b $(git rev-parse --abbrev-ref HEAD) -m ./manifest/default.staged.xml
./.venv/repo sync -m ./manifest/default.staged.xml
./.venv/repo manifest -r -o ./default.xml./.venv/repo manifest -o ./manifest/default.dev.xmlCommit.
git commit -am "[#ticket] subject: short sentence"./.venv/repo forall -pc "git branch -a|grep BRANCH"./.venv/repo forall -pc 'git branch -a|(grep /BRANCH$||echo "no match")|grep "no match"'./.venv/repo forall -pc "git status -s"Before cleaning, check changed file in all repos.
./.venv/repo forall -pc "git status -s"Check the changed branch, and push changed if needed.
./script/git/git_show_code_diff_repo_manifest.py -m ./manifest/default.dev.xmlMaybe, some version diverge from your manifest. Simply clean all and relaunch your installation.
./script/git/clean_repo_manifest.sh