blob: d0ed4a38f997c8bf8f44abc2751f5856134d816b [file] [log] [blame] [view]
Ron Eldorbf007d22016-12-15 14:42:37 +02001README for git hooks script
2===========================
3git has a way to run scripts, which are invoked by specific git commands.
4The git hooks are located in `<mbed TLS root>/.git/hooks`, and as such are not under version control
5for more information, see the [git documentation](https://git-scm.com/docs/githooks).
6
7The mbed TLS git hooks are located in `<mbed TLS root>/git_hooks` directory, and one must create a soft link from `<mbed TLS root>/.git/hooks` to `<mbed TLS root>/git_hooks`, in order to make the hook scripts successfully work.
8
9Example:
10
11Execute the following command to create a link on linux from the mbed TLS `.git\hooks` directory:
12`ln -s ../../git_hooks/pre-push pre-push`
13
14Similarly, on Windows while running as administrator:
15`mklink pre-push ..\..\git_hooks\pre-push`
16