SVN pre-commit hook to restrict file extensions from getting commited
问题 Using the following code in the Collabnet SVN's pre commit script to restrict the specific file extensions to get committed, but it is committing all the files. Could you please tell where I'm going wrong. #!/bin/sh REPOS="$1" TXN="$2" SVNLOOK=/home/csvn/csvn/bin/svnlook LOGMSG=`$SVNLOOK log -t "$TXN" "$REPOS" | grep "[a-zA-Z0-9]" | wc -c` if [ "$LOGMSG" -lt 10 ]; then echo -e "\n===========================================================" 1>&2 echo -e "|| COMMENTS ARE MADE MANDATORY.PLEASE