summaryrefslogtreecommitdiff
path: root/builtin-rev-list.c
diff options
context:
space:
mode:
authorFredrik Kuivinen <frekui@gmail.com>2007-02-18 10:36:22 +0100
committerJunio C Hamano <junkio@cox.net>2007-02-18 15:58:08 -0800
commit256c3fe6c71bfe5899dec7bc4b49fe148b4d3884 (patch)
treeabed5424cd975bf4b604d23d47285632275c5590 /builtin-rev-list.c
parent21b4875a51dd9aae68a1c4932d54cad9fc589401 (diff)
downloadgit-256c3fe6c71bfe5899dec7bc4b49fe148b4d3884.tar.gz
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>
Diffstat (limited to 'builtin-rev-list.c')
-rw-r--r--builtin-rev-list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 1bb3a06680..c2db5a5b03 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;