summaryrefslogtreecommitdiff
path: root/config/services/git/shell-commands/repo/src/set_privacy_command.sh
blob: db033e69f3423f9db89dd53ab52dcb64d1f52ada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
path=$(realpath "${args[path]}")

check-realpath "$path"

case "${args[visibility]}" in
    public)
        mode="rX"
        ;;
    private)
        mode=""
        ;;
esac

chmod g="$mode" --recursive "$path"
args[--tree]=1
args[path]="$path"
repo_show_command