Jelajahi Sumber

Fix submodule initialization and updating

Andrew Swistak 11 tahun lalu
induk
melakukan
2ce8a9e62e
2 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 2 1
      scripts/UpdateVimPlugins
  2. 2 1
      scripts/install

+ 2 - 1
scripts/UpdateVimPlugins

@@ -2,7 +2,8 @@
 
 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
 
-git submodule foreach git pull origin master
+git submodule update --init --recursive
+git submodule foreach --recursive git pull origin master
 
 read -p "Auto compile YouCompleteMe? [y/N] " -n 1 -r
 if [[ $REPLY =~ ^[Yy]$ ]]; then

+ 2 - 1
scripts/install

@@ -38,7 +38,8 @@ for i in $(ls "$DIR"); do
   fi
 done
 
-git submodule foreach git pull origin master
+git submodule update --init --recursive
+git submodule foreach --recursive git pull origin master
 ln -fsn "$DIR"/vim/pathogen/autoload "$DIR"/vim/
 mkdir -p "$DIR"/vim/tmp/{backup,swap,undo}