Add instructions for setting up commit-hook msg.
Change-Id: I0e787e03b8c2a6c59f522cbd3302b8d5c95121bf
diff --git a/Documentation/dev-readme.txt b/Documentation/dev-readme.txt
index 2748413..f045ab8 100644
--- a/Documentation/dev-readme.txt
+++ b/Documentation/dev-readme.txt
@@ -13,12 +13,21 @@
----
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit
- cd gerrit
----
The `--recurse-submodules` option is needed on `git clone` to ensure that the
core plugins, which are included as git submodules, are also cloned.
+Next setup the commit-hook. This is necessary to ensure that each commit has a
+`Change-Id`.
+
+----
+ cd gerrit && (
+ cd .git/hooks
+ ln -s ../../resources/com/google/gerrit/server/tools/root/hooks/commit-msg
+ )
+----
+
=== Switching between branches
When using `git checkout` without `--recurse-submodules` to switch between
diff --git a/polygerrit-ui/README.md b/polygerrit-ui/README.md
index 0297324..cd88f52 100644
--- a/polygerrit-ui/README.md
+++ b/polygerrit-ui/README.md
@@ -4,12 +4,22 @@
[setup instructions for Gerrit backend developers](https://gerrit-review.googlesource.com/Documentation/dev-readme.html)
where applicable, the most important command is:
-```
+```sh
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit
```
The --recurse-submodules option is needed on git clone to ensure that the core plugins, which are included as git submodules, are also cloned.
+Then make sure to install the commit-hook that will set up the `ChangeId` for
+each push to gerrit-reviews.
+
+```sh
+cd gerrit && (
+ cd .git/hooks
+ ln -s ../../resources/com/google/gerrit/server/tools/root/hooks/commit-msg
+)
+```
+
## Installing [Bazel](https://bazel.build/)
Follow the instructions