J-Alves | 241c66c | 2023-10-19 13:59:29 +0100 | [diff] [blame] | 1 | Getting the source code |
| 2 | ======================= |
| 3 | |
| 4 | Hafnium source code is maintained in a Git repository hosted on trustedfirmware.org. |
| 5 | To clone this repository from the server, run the following in your shell: |
| 6 | |
| 7 | .. code:: shell |
| 8 | |
| 9 | git clone --recurse-submodules https://git.trustedfirmware.org/hafnium/hafnium.git |
| 10 | |
| 11 | In order to import gerrit hooks useful to add a Change-Id footer in commit messages, |
| 12 | it is recommended to use: |
| 13 | |
| 14 | .. code:: shell |
| 15 | |
| 16 | git clone --recurse-submodules https://git.trustedfirmware.org/hafnium/hafnium.git && { cd hafnium && f="$(git rev-parse --git-dir)"; curl -Lo "$f/hooks/commit-msg" https://review.trustedfirmware.org/tools/hooks/commit-msg && { chmod +x "$f/hooks/commit-msg"; git submodule --quiet foreach "cp \"\$toplevel/$f/hooks/commit-msg\" \"\$toplevel/$f/modules/\$path/hooks/commit-msg\""; }; } |
| 17 | |
| 18 | -------------- |
| 19 | |
| 20 | *Copyright (c) 2023, Arm Limited. All rights reserved.* |