diff options
author | Leif Johansson <leifj@sunet.se> | 2014-03-03 20:57:25 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2014-03-03 20:57:25 +0100 |
commit | b1b3ca294f92b9938d25c83d8099c2c8d95cb416 (patch) | |
tree | 266920154a96a62fca091f92a15fe9bf695b4d5b /global | |
parent | 2369e391d7418fdb8a402d403caf33608c86c70a (diff) | |
parent | eda9bcdd455bb34c8e0d36b88c19c29807288cb8 (diff) |
Merge pull request #6 from Ratler/update_origin_url
Update git origin url if changed in cosmos-modules.conf
Diffstat (limited to 'global')
-rwxr-xr-x | global/post-tasks.d/018packages | 3 |
1 files changed, 3 insertions, 0 deletions
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 |