Skip to contentSkip to conversation

Read the config in rev-list

PATCH New Fredrik Kuivinen 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Read the config in rev-list

Otherwise "git rev-list --header HEAD" will not do the right thing if i18n.commitencoding is set.

---

 builtin-rev-list.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
builtin-rev-list.c +1 -0
index 1bb3a06..c2db5a5 100644
@@ -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;