If one or more directories of an env profile consist of a git submodule,
they will be checked out automatically now when switching to the according
profile with 'scripts/env switch'.

Signed-off-by: Linus Lüssing <linus.luess...@web.de>
---
 scripts/env |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/env b/scripts/env
index 80e08ec..ba7e30e 100755
--- a/scripts/env
+++ b/scripts/env
@@ -165,6 +165,7 @@ env_switch() {
        env_init
        env_ask_sync
        git checkout "$name" || error "environment '$name' not found"
+       git submodule update --init --recursive
        env_link_config
 }
 
-- 
1.7.7.3

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to