From: Fredrik Kuivinen Date: Sun, 18 Feb 2007 09:36:22 +0000 (+0100) Subject: Read the config in rev-list X-Git-Tag: v1.5.0.1~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=256c3fe6c71bfe5899dec7bc4b49fe148b4d3884;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-rev-list.c b/builtin-rev-list.c index 1bb3a0668..c2db5a5b0 100644 --- a/builtin-rev-list.c +++ b/builtin-rev-list.c @@ -226,6 +226,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix) int i; int read_from_stdin = 0; + git_config(git_default_config); init_revisions(&revs, prefix); revs.abbrev = 0; revs.commit_format = CMIT_FMT_UNSPECIFIED;