diff --git a/data/cl-git-wrapper b/data/cl-git-wrapper index 12d03b0..67de9f5 100755 --- a/data/cl-git-wrapper +++ b/data/cl-git-wrapper @@ -1,7 +1,7 @@ #!/bin/bash # если выполняется обновление уже полученного репозитория -if [[ $1 == "pull" ]] +if [[ $1 == "pull" ]] || [[ $1 == "remote" ]] then # получить название репозитория if [[ -f profiles/repo_name ]] @@ -20,8 +20,11 @@ native_reps=,$(/usr/libexec/calculate/cl-variable --value update.cl_update_rep_ # если обновляемый репозиторий от дистрибутива if echo $native_reps | grep -q ,${repo_name}, then - # отбновить репозиторий через утилиты Calculate - /usr/sbin/cl-core --method update --rep $repo_name --sync-only on --skip-eix-update -T none + if [[ $1 == "pull" ]] + then + # отбновить репозиторий через утилиты Calculate + /usr/sbin/cl-core --method update --rep $repo_name --sync-only on --skip-eix-update -T none + fi else # выполнить обновление через git /usr/bin/git $*