>
>
> * pre-commit: prevent committing a file whose name would be problematic on
> Windows (don't know a script that does this):
> * these filenames are illegal on Windows: CON, PRN, AUX, NUL, COM1 thru
> COM9, LPT1 thru LPT9, and any of these with any extension
> * a filename may not end with a period or space
> * a filename may not contain the characters < > : " / \ |
>
I'm actually looking for a more specific instance of this. There are files
that should exist in each developer's environment called dbsecret.php.inc
and reality.php.inc, and I want to make sure no one tries to check in a file
named that. This was my attempt in pre-commit to fix it, but it doesn't
seem to work. Any ideas?
$SVNLOOK changed -t "$TXN" "$REPOS" | \
grep -E "dbsecret.php.inc|reality.php.inc" > /dev/null || exit 1
Waynn
Received on 2008-07-19 16:22:58 CEST