mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-12-22 16:50:23 -05:00
Don't checkout the master branch of submodules so the version specified by the repo is used
This commit is contained in:
parent
f5cde6e837
commit
5e783f87d5
1 changed files with 0 additions and 11 deletions
11
update
11
update
|
@ -182,17 +182,6 @@ else
|
|||
error 'git submodule foreach git fetch --all' "Git failed to fetch the submodules from their respective remotes" "$process_status"
|
||||
fi
|
||||
|
||||
# run 'git checkout origin/master' on each submodule
|
||||
printf '%s' "$cbg_blue $c_reset$cbg_yellow + Checkout updates:$c_reset"
|
||||
process_status="$(git submodule foreach git checkout -f origin/master 2>&1)"
|
||||
|
||||
if (( ! $? )); then
|
||||
printf '%s\n' "$cfg_green_bold SUCCESS! $c_reset"
|
||||
else
|
||||
printf '%s\n' "$cfg_red_bold FAIL! $c_reset"
|
||||
error 'git submodule foreach git checkout -f origin/master' 'Git failed to checkout the submodules into origin/master' "$process_status"
|
||||
fi
|
||||
|
||||
# clean plugin directories and remove plugins no longer in the repo
|
||||
printf '\n%s\n' "$cbg_blue >> Clean plugin directories >> $c_reset"
|
||||
printf '%s' "$cbg_blue $c_reset$cbg_yellow + Remove untracked files:$c_reset"
|
||||
|
|
Loading…
Reference in a new issue