Merge pull request #6 from Ratler/update_origin_url

Update git origin url if changed in cosmos-modules.conf
This commit is contained in:
Leif Johansson 2014-03-03 20:57:25 +01:00
commit b1b3ca294f

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