Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Git 2.1.4
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index f2d7979deb9438ab388e2cefff613b1f8d6d3c56..5ed60364ce5eb1f458e1f5155d76abd7341d24ea 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-420,8
+420,7
@@
static char *prepare_index(int argc, const char **argv, const char *prefix,
die(_("cannot do a partial commit during a cherry-pick."));
}
- memset(&partial, 0, sizeof(partial));
- partial.strdup_strings = 1;
+ string_list_init(&partial, 1);
if (list_paths(&partial, !current_head ? NULL : "HEAD", prefix, &pathspec))
exit(1);