if [ "$ACTION" == "fetch" ] && [ "$ACTION" == "merge" ]; then
echo "Initializing submodules..."
$GIT submodule sync --recursive
- $GIT submodule update --init --recursive
+ $GIT submodule update --init --recursive #--recommend-shallow
fi
# Convert to new dotfiles layout
(
cd $DIRNAME && $GIT merge origin/master && \
$GIT submodule sync --recursive && \
- $GIT submodule update --init --recursive
+ $GIT submodule update --init --recursive #--recommend-shallow
)
}