aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/files/create_git_repo.sh
blob: 1104edbe17affef284fd6da2fcaac2341d2eb3a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
umask 0002
# http://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