Subversion Repository Hook : check-case-insensitive

Description:

This Pre-Commit hook can be used to implement the checks required to ensure that the
repository acts in a way which is compatible with a case preserving but
case insensitive file system.

When a file is added this script checks the file tree in the repository for
files which would be the same name on a case insensitive file system and
rejects the commit.

Installation:

These instructions assume that you are using the subversion command line interface on a Unix system. Your process may be slightly different depending on client and operating system.

  • Check out your /rice-config repository folder
svn co https://svn.rice.edu/r/REPONAME/rice_config
  • Change to the rice_config folder
cd rice_config/
  • Create a folder called hooks if it doesn't exist already
mkdir hooks/
  • Change into the hooks folder
cd hooks/
  • Create a file called check-case-insensitive
touch check-case-insensitive
  • Add the directory and file to the repository
cd ../../
svn add hooks
svn commit -m "Added check-case-insensitive hook to the repository"

Configuration

No configuration is required for this hook. Merely adding the empty file will enable the hook.

  • No labels