/[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 1688 - (hide annotations) (download)
Wed Jun 1 14:20:47 2011 UTC (12 years, 10 months ago) by boklm
File size: 221 byte(s)
allow restricting commits to a user
1 misc 307 #!/bin/sh
2    
3     REP="$1"
4     TXN="$2"
5    
6     author=$(svnlook author -t "$TXN" "$REP")
7    
8 boklm 1688 if [ "$author" != '<%= restricted_to_user %>' ]; then
9     echo "this repository is restrected to user <%= restricted_to_user %>" >&2
10 misc 307 exit 1
11     fi
12    

  ViewVC Help
Powered by ViewVC 1.1.30