diff --git a/bin/hook-summary.py b/bin/hook-summary.py
index 4cb2c67011bcc51bfc05022385f4f42be6befdc9..f5f49a05483c4f9a633d8fbe164076e892305b52 100755
--- a/bin/hook-summary.py
+++ b/bin/hook-summary.py
@@ -14,7 +14,7 @@ HEADER = """# All hooks
  -- DO NOT EDIT
  --
  -- This entire page is auto-generated by the following command:
- -- ./bin/tools generate:hooks-list
+ -- ./bin/hook-summary.py
  --
  -->
 
diff --git a/docs/hooks/list.md b/docs/hooks/list.md
index 2ae2e1f6ebfd026c931f6927ef1ad63689787992..e84c4781e6917d8aafd21d0d81142303c537590a 100644
--- a/docs/hooks/list.md
+++ b/docs/hooks/list.md
@@ -4,7 +4,7 @@
  -- DO NOT EDIT
  --
  -- This entire page is auto-generated by the following command:
- -- ./bin/tools generate:hooks-list
+ -- ./bin/hook-summary.py
  --
  -->