10 lines
220 B
Bash
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 *
|