|
|
|
@ -56,6 +56,14 @@ if [[ -e .gitmodules ]]; then
|
|
|
|
|
else |
|
|
|
|
sed -i "s/system@/$gituser@/g" .gitmodules |
|
|
|
|
fi |
|
|
|
|
REPO_URL=$(git config --get remote.origin.url |\ |
|
|
|
|
sed "s|\(https\?\)://\([^@]*@\)\?\(.*\)/[^/]*$|\3|") |
|
|
|
|
REPO_PROTO=$(git config --get remote.origin.url |\ |
|
|
|
|
sed "s|\(https\?\)://\([^@]*@\)\?\(.*\)/[^/]*$|\1|") |
|
|
|
|
REPO_MASTER=scm.trinitydesktop.org/scm/git |
|
|
|
|
if [[ "$REPO_URL" != "$REPO_MASTER" ]]; then |
|
|
|
|
sed -i "s#https\?://\([^@]*@\)\?$REPO_MASTER#$REPO_PROTO://\1$REPO_URL#g" .gitmodules |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
git submodule init |
|
|
|
|
git submodule update |
|
|
|
|