Merge pull request #6 from Ratler/update_origin_url
Update git origin url if changed in cosmos-modules.conf
This commit is contained in:
commit
b1b3ca294f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue