@matheusbsbs / matheus-bagliano / commits / 8e27364128
Fork 0

unpack-objects: read configuration data upon startup.

With this, unpack-objects will write out the loose objects with new-style headers when core.legacyheaders configuration is set to false. One unfortunate thing is that we still need inflate/deflate cycle when unpacking, even for objects in the pack stream that are not deltified, because it is not possible to determine the boundary of objects in the encoded stream cheaply without inflating it first. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Jul 17, 2006 at 15:10 UTC 8e27364128b091e76059229d4f009bc7f869fa9f
1 file changed +1
unpack-objects.c
+1
@@ -266,6 +266,7 @@ int main(int argc, char **argv)
266 unsigned char sha1[20];
267
268 setup_git_directory();
269 + git_config(git_default_config);
270
271 quiet = !isatty(2);
272