소스 검색

Fix submodule initialization and updating

Andrew Swistak 11 년 전
부모
커밋
2ce8a9e62e
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  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}