Skip to content

psykkuno/git-pre-commit-hook-windows-filenames

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

Installation

Copy the file pre-commit to .git/hooks and make it executable.

By executing

git config hooks.enforcecompatiblefilenames true

you can then enable the hook.

Testing

Clone the repository and execute ./test-hook.sh

Limitation

The maximum absolute file path can not be reliable enforced as the path length leading to the repository root is unknown for other clients.

Copyright thomas dot braun aeht virtuell minus zuhause dot de, 2013

About

Git pre-commit hook for enforcing legal filenames on windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%