Skip to content

Commit 256c3fe

Browse files
frekuiJunio C Hamano
authored andcommitted
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>
1 parent 21b4875 commit 256c3fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin-rev-list.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix)
226226
int i;
227227
int read_from_stdin = 0;
228228

229+
git_config(git_default_config);
229230
init_revisions(&revs, prefix);
230231
revs.abbrev = 0;
231232
revs.commit_format = CMIT_FMT_UNSPECIFIED;

0 commit comments

Comments
 (0)