blob: 6bd9110c5136064e245a89fd5edc28585ca4eb64 [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
Ron Eldord731eb82017-07-23 15:25:32 +03007The mbed TLS git hooks are located in `<mbed TLS root>/test/git-scripts` directory, and one must create a soft link from `<mbed TLS root>/.git/hooks` to `<mbed TLS root>/test/git-scripts`, in order to make the hook scripts successfully work.
Ron Eldorbf007d22016-12-15 14:42:37 +02008
9Example:
10
Ron Eldor50bdf742017-07-20 18:24:43 +030011Execute the following command to create a link on linux from the mbed TLS `.git/hooks` directory:
Ron Eldord731eb82017-07-23 15:25:32 +030012`ln -s ../../test/git-scripts/pre-push.sh pre-push`
Ron Eldorbf007d22016-12-15 14:42:37 +020013
Ron Eldor3f9cc282017-07-20 11:25:14 +030014**Note: Currently the mbed TLS git hooks work only on a GNU platform. If using a non-GNU platform, don't enable these hooks!**
Ron Eldord731eb82017-07-23 15:25:32 +030015
16These scripts can also be used independently.