Update git origin url if changed in cosmos-modules.conf

This commit is contained in:
Stefan Wold 2014-03-03 18:00:11 +01:00
parent 2369e391d7
commit eda9bcdd45

View file

@ -31,6 +31,9 @@ if [ -f $CONFIG ]; then
elif [ -d $CACHE_DIR/scm/$module/.git ]; then
if [ "$update" = "yes" ]; then
cd $CACHE_DIR/scm/$module
if [ "$src" != "$(git config remote.origin.url)" ]; then
git config remote.origin.url $src
fi
git pull -q
else
continue