Read the config in rev-list
Otherwise "git rev-list --header HEAD" will not do the right thing if i18n.commitencoding is set. Signed-off-by: Fredrik Kuivinen <frekui@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Fredrik Kuivinen committed
Feb 18, 2007 at 10:36 UTC
256c3fe6c71bfe5899dec7bc4b49fe148b4d3884
1 file changed
+1
builtin-rev-list.c
+1
@@ -226,6 +226,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
226
int i;
227
int read_from_stdin = 0;
228
229
+ git_config(git_default_config);
230
init_revisions(&revs, prefix);
231
revs.abbrev = 0;
232
revs.commit_format = CMIT_FMT_UNSPECIFIED;