am: improve author-script error reporting
[gitweb.git] / builtin / commit.c
index 3f33ae60430d5d0ba52a6956539b1dadbb10e309..1d5292e4d827312d3a08ceb44f6a120cbd0c4576 100644 (file)
@@ -874,6 +874,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
                s->use_color = 0;
                commitable = run_status(s->fp, index_file, prefix, 1, s);
                s->use_color = saved_color_setting;
+               string_list_clear(&s->change, 1);
        } else {
                struct object_id oid;
                const char *parent = "HEAD";