| 1993 | } |
| 1994 | |
| 1995 | static void fetch_pack_config(void) |
| 1996 | { |
| 1997 | repo_config_get_int(the_repository, "fetch.unpacklimit", &fetch_unpack_limit); |
| 1998 | repo_config_get_int(the_repository, "transfer.unpacklimit", &transfer_unpack_limit); |
| 1999 | repo_config_get_bool(the_repository, "repack.usedeltabaseoffset", &prefer_ofs_delta); |
| 2000 | repo_config_get_bool(the_repository, "fetch.fsckobjects", &fetch_fsck_objects); |
| 2001 | repo_config_get_bool(the_repository, "transfer.fsckobjects", &transfer_fsck_objects); |
| 2002 | repo_config_get_bool(the_repository, "transfer.advertisesid", &advertise_sid); |
| 2003 | if (!uri_protocols.nr) { |
| 2004 | char *str; |
| 2005 | |
| 2006 | if (!repo_config_get_string(the_repository, "fetch.uriprotocols", &str) && str) { |
| 2007 | string_list_split(&uri_protocols, str, ",", -1); |
| 2008 | free(str); |
| 2009 | } |
| 2010 | } |
| 2011 | |
| 2012 | repo_config(the_repository, fetch_pack_config_cb, NULL); |
| 2013 | } |
| 2014 | |
| 2015 | static void fetch_pack_setup(void) |
| 2016 | { |
no test coverage detected