doc: update hafnium project clone command
The clone command provided in Getting started page had a small
problem with copying default commit hooks file to the different
submodules. Fix by using a git submodule foreach statement.
Change-Id: Ib3043bb70c62104e39da73d47bf3708154eb164a
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md
index 4fb870e..35a1065 100644
--- a/docs/GettingStarted.md
+++ b/docs/GettingStarted.md
@@ -5,7 +5,7 @@
## Getting the source code
```shell
-git clone --recurse-submodules https://git.trustedfirmware.org/hafnium/hafnium.git && (cd hafnium && f=`git rev-parse --git-dir`/hooks/commit-msg ; curl -Lo $f https://review.trustedfirmware.org/tools/hooks/commit-msg ; chmod +x $f ; for m in `git rev-parse --git-dir`/modules/*; do cp $f $m/hooks/commit-msg; done)
+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\""; }; }
```
To upload a commit for review: