threads / patch / 10789

patchgit-hash-object should honor config variables

Subject: [PATCH] git-hash-object should honor config variables

## tl;dr

One message between Nov 10, 2007 and Nov 10, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Nicolas Pitre· Nov 10, 2007, 20:00 UTC · lore
... such as core.compression.
Signed-off-by: Nicolas Pitre <nico@cam.org>
---
Show changes to hash-object.c +2 −0
diff --git a/hash-object.c b/hash-object.c
index 18f5017..0a58f3f 100644
--- a/hash-object.c
+++ b/hash-object.c
@@ -42,6 +42,8 @@ int main(int argc, char **argv)
 	int prefix_length = -1;
 	int no_more_flags = 0;
 
+	git_config(git_default_config);
+
 	for (i = 1 ; i < argc; i++) {
 		if (!no_more_flags && argv[i][0] == '-') {
 			if (!strcmp(argv[i], "-t")) {

← back to recent threads