/[adm]/puppet/modules/git/templates/create_git_repo.sh
ViewVC logotype

Contents of /puppet/modules/git/templates/create_git_repo.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 897 - (show annotations) (download) (as text)
Mon Jan 24 16:57:57 2011 UTC (13 years, 2 months ago) by misc
File MIME type: application/x-sh
File size: 247 byte(s)
- deny force-update remote branches to non-fast-forward references by
  default
1 #!/bin/bash
2 umask 0002
3 # http://eagleas.livejournal.com/18907.html
4 name="$1"
5 mkdir -p $name
6 cd $name
7 git --bare init --shared=group
8 chmod g+ws branches info objects refs
9 ( cd objects; chmod g+ws * )
10 git config receive.denyNonFastForwards true
11

  ViewVC Help
Powered by ViewVC 1.1.30