diff --git a/oca-repos-manager.sh b/oca-repos-manager.sh index cde2587..35a98e3 100644 --- a/oca-repos-manager.sh +++ b/oca-repos-manager.sh @@ -42,7 +42,7 @@ update_ocb() { printf "\n%s\n" "Start updating OCB..." echo "Entering: ${ocb_install_path}" >&2 - cd ${ocb_install_path} && git pull + cd ${ocb_install_path} && git pull --depth=1 exit_code=$? if [[ "${exit_code}" -ne 0 ]]; then printf "${color_danger}%s${color_end},\n" "Error! Something was wrong updating OCB..." @@ -85,7 +85,7 @@ update_oca_repos() { for repo in $@; do echo "Entering: ${oca_addons_install_path}/${repo}" >&2 - cd ${oca_addons_install_path}/${repo} && git pull + cd ${oca_addons_install_path}/${repo} && git pull --depth=1 exit_code=$? if [[ "${exit_code}" -ne 0 ]]; then printf "${color_danger}%s${color_end},\n" "Error! Something was wrong updating ${repo} repository..."