Only update git submodules after switching branches