| 941 | } |
| 942 | |
| 943 | static void add_index_pack_keep_option(struct strvec *args) |
| 944 | { |
| 945 | char hostname[HOST_NAME_MAX + 1]; |
| 946 | |
| 947 | if (xgethostname(hostname, sizeof(hostname))) |
| 948 | xsnprintf(hostname, sizeof(hostname), "localhost"); |
| 949 | strvec_pushf(args, "--keep=fetch-pack %"PRIuMAX " on %s", |
| 950 | (uintmax_t)getpid(), hostname); |
| 951 | } |
| 952 | |
| 953 | /* |
| 954 | * If packfile URIs were provided, pass a non-NULL pointer to index_pack_args. |
no test coverage detected