/[adm]/puppet/modules/subversion/templates/restricted_to_user
ViewVC logotype

Annotation of /puppet/modules/subversion/templates/restricted_to_user

Parent Directory Parent Directory | Revision Log Revision Log


Revision 307 - (hide annotations) (download)
Fri Nov 19 00:46:14 2010 UTC (11 years, 2 months ago) by misc
Original Path: puppet/modules/subversion/templates/no_root_commit
File size: 159 byte(s)
add check for root and empty commit
1 misc 307 #!/bin/sh
2    
3     REP="$1"
4     TXN="$2"
5    
6     author=$(svnlook author -t "$TXN" "$REP")
7    
8     if [ "$author" == 'root' ]; then
9     echo "no root commit allowed" >&2
10     exit 1
11     fi
12    

  ViewVC Help
Powered by ViewVC 1.1.28