builtin/commit: fix duplicated sentence in a comment
[gitweb.git] / builtin / commit.c
index 8dd104ee0b247f5536d02d54a932acfcbaec603b..8cc9293e261c022c517fd3ccc476b54b0b7cbd2a 100644 (file)
@@ -322,8 +322,8 @@ static char *prepare_index(int argc, const char **argv, const char *prefix, int
         *
         * (1) return the name of the real index file.
         *
-        * The caller should run hooks on the real index, and run
-        * hooks on the real index, and create commit from the_index.
+        * The caller should run hooks on the real index,
+        * and create commit from the_index.
         * We still need to refresh the index here.
         */
        if (!pathspec || !*pathspec) {