Files
svr/git_to_group.sh
journal_froid 1d4435089f rebasing .git
2026-01-23 09:59:19 +01:00

10 lines
220 B
Bash
Executable File

#!/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 *