aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/files/create_git_repo.sh
blob: 144d063be7991724c4f469211228a8a945b25676 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
umask 0002
# https://eagleas.livejournal.com/18907.html
name="$1"
mkdir -p $name
cd $name 
git --bare init --shared=group 
chmod g+ws branches info objects refs 
( cd objects; chmod g+ws * )
git config receive.denyNonFastForwards true