From eda9bcdd455bb34c8e0d36b88c19c29807288cb8 Mon Sep 17 00:00:00 2001 From: Stefan Wold Date: Mon, 3 Mar 2014 18:00:11 +0100 Subject: [PATCH] Update git origin url if changed in cosmos-modules.conf --- global/post-tasks.d/018packages | 3 +++ 1 file changed, 3 insertions(+) diff --git a/global/post-tasks.d/018packages b/global/post-tasks.d/018packages index 5ca5c63..3e2e26e 100755 --- a/global/post-tasks.d/018packages +++ b/global/post-tasks.d/018packages @@ -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