Merge branch 'jp/string-list-api-cleanup'
[gitweb.git] / builtin / commit.c
index 3d99cf91587593ecce56a603ca064888cdd60988..c6b053a508facc2029df489d069e0667cfeb28fe 100644 (file)
@@ -219,7 +219,7 @@ static int list_paths(struct string_list *list, const char *with_tree,
                        continue;
                if (!match_pathspec(pattern, ce->name, ce_namelen(ce), 0, m))
                        continue;
-               item = string_list_insert(ce->name, list);
+               item = string_list_insert(list, ce->name);
                if (ce_skip_worktree(ce))
                        item->util = item; /* better a valid pointer than a fake one */
        }