Code

Read the config in rev-list
authorFredrik Kuivinen <frekui@gmail.com>
Sun, 18 Feb 2007 09:36:22 +0000 (10:36 +0100)
committerJunio C Hamano <junkio@cox.net>
Sun, 18 Feb 2007 23:58:08 +0000 (15:58 -0800)
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>
builtin-rev-list.c

index 1bb3a06680194ce5855185ad1a1c7e39eeebba94..c2db5a5b037babf9020353d9b11dc348915b6c1b 100644 (file)
@@ -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;