#!/usr/bin/bash set -x export GIT_CONFIG_COUNT=2 export GIT_CONFIG_KEY_0=protocol.file.allow export GIT_CONFIG_VALUE_0=always export GIT_CONFIG_KEY_1=init.defaultBranch export GIT_CONFIG_VALUE_1=main export GIT_AUTHOR_NAME=testname export GIT_AUTHOR_EMAIL=test@suse.com export GIT_AUTHOR_DATE='2005-04-07T22:13:13' export GIT_COMMITTER_NAME=testname export GIT_COMMITTER_EMAIL=test@suse.com export GIT_COMMITTER_DATE='2005-04-07T22:13:13' create_prjgit_sample() { mkdir prjgit pushd prjgit git init -q --object-format=sha256 echo Project git is here > README.md git add README.md git submodule init git submodule -q add ../pkgA pkgA git commit -q -m 'first commit' popd } create_pkgA() { mkdir pkgA pushd pkgA git init -q --object-format=sha256 echo "Package A" > README.md git add README.md git commit -q -m 'Something base here' popd } create_pkgA create_prjgit_sample