Parent Directory | Revision Log
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 |