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

Contents of /puppet/modules/subversion/templates/no_binary

Parent Directory Parent Directory | Revision Log Revision Log


Revision 651 - (show annotations) (download)
Tue Dec 21 19:36:10 2010 UTC (13 years, 4 months ago) by boklm
File size: 412 byte(s)
print the error on stderr so the user can see it
1 #!/bin/sh
2
3 REP="$1"
4 TXN="$2"
5
6 # Filter some binary files based on common filename extentions.
7 # It does not fully prevent commit of binary files, this script is only
8 # here to avoid simple mistakes
9 if svnlook changed -t "$TXN" "$REP" | grep -qi '\.\(gz\|bz2\|xz\|lzma\|Z\|7z\|tar\|tgz\|zip\|jpg\|gif\|png\|ogg\|mp3\|wav\|rar\|pdf\)$'
10 then
11 echo 'no binary files allowed on this repository' >&2
12 exit 1
13 fi
14

  ViewVC Help
Powered by ViewVC 1.1.30