Update git origin url if changed in cosmos-modules.conf
This commit is contained in:
parent
2369e391d7
commit
eda9bcdd45
|
@ -31,6 +31,9 @@ if [ -f $CONFIG ]; then
|
||||||
elif [ -d $CACHE_DIR/scm/$module/.git ]; then
|
elif [ -d $CACHE_DIR/scm/$module/.git ]; then
|
||||||
if [ "$update" = "yes" ]; then
|
if [ "$update" = "yes" ]; then
|
||||||
cd $CACHE_DIR/scm/$module
|
cd $CACHE_DIR/scm/$module
|
||||||
|
if [ "$src" != "$(git config remote.origin.url)" ]; then
|
||||||
|
git config remote.origin.url $src
|
||||||
|
fi
|
||||||
git pull -q
|
git pull -q
|
||||||
else
|
else
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue