diff --git a/.gitmodules b/.gitmodules index 29e69d1..94bbb4b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,9 +1,13 @@ [submodule ".config/st"] path = .config/st url = ../st.git + ignore = all [submodule ".config/dwm"] path = .config/dwm url = ../dwm.git + ignore = all [submodule ".config/nvim"] path = .config/nvim url = ../nvim.git + ignore = all + diff --git a/scripts/auto_rice b/scripts/auto_rice index 924fafc..a16648b 100755 --- a/scripts/auto_rice +++ b/scripts/auto_rice @@ -28,17 +28,7 @@ chmod 700 "$HOME/.local/share/gnupg/" config submodule init config submodule update --force --recursive --init --remote - -# Git submodules will, by default, have the branch name be a hash -# of the current commit. This bit just goes into each submodule -# and explicitly checks out master. -cd $HOME -submodules="$(grep submodule .gitmodules | awk -F'"' '{print $2}')" -IFS=$'\n' -for mod_path in $submodules; do - cd "$HOME/$mod_path" - git checkout master -done +config submodule foreach "git checkout master" exec zsh