Przeglądaj źródła

force git submodule updates

Andrew Swistak 10 lat temu
rodzic
commit
6c62bbad48
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      bin/manage_dotfiles.sh

+ 3 - 2
bin/manage_dotfiles.sh

@@ -85,8 +85,9 @@ install_dotfiles() {
 }
 
 update_git_submodules() {
-  git submodule update --init --recursive
+  git submodule foreach --recursive git reset --hard origin/master
   git submodule foreach --recursive git pull origin master
+  git submodule foreach git submodule update --init --recursive
 }
 
 compile_ycm() {
@@ -96,7 +97,7 @@ compile_ycm() {
   fi
 
   cd "$DIR"/vim/bundle/YouCompleteMe
-  ./install.sh
+  python2 ./install.py
   cd "$DIR"
 }