gonito/helpers/gitolite/mark_as_public.sh

17 lines
198 B
Bash
Executable File

#!/bin/bash
REPODIR="$1"
if [[ ! -d "$REPODIR" ]]
then
echo "NO DIRECTORY!"
exit 1
fi
chgrp -R git "$REPODIR"
chmod -R g+rX "$REPODIR"
find "$REPODIR" -type d -exec chmod g+s '{}' ';'