Files
svr/git_to_group.sh
T
2026-01-23 08:55:18 +01:00

10 lines
220 B
Bash

#!/usr/bin/bash
REPO=${1:-"svr"}
# make the repository shared
git config core.$REPO group # or whatever other sharing option
# fix the setgid bit
find . -type d | xargs chmod g+s
# repair the permissions
chmod -R g+r *