Browse Source

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>
maint
Fredrik Kuivinen 18 years ago committed by Junio C Hamano
parent
commit
256c3fe6c7
  1. 1
      builtin-rev-list.c

1
builtin-rev-list.c

@ -226,6 +226,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix) @@ -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;

Loading…
Cancel
Save