| 448 | } |
| 449 | |
| 450 | static void git_config_push_split_parameter(const char *key, const char *value) |
| 451 | { |
| 452 | struct strbuf env = STRBUF_INIT; |
| 453 | const char *old = getenv(CONFIG_DATA_ENVIRONMENT); |
| 454 | if (old && *old) { |
| 455 | strbuf_addstr(&env, old); |
| 456 | strbuf_addch(&env, ' '); |
| 457 | } |
| 458 | sq_quote_buf(&env, key); |
| 459 | strbuf_addch(&env, '='); |
| 460 | if (value) |
| 461 | sq_quote_buf(&env, value); |
| 462 | setenv(CONFIG_DATA_ENVIRONMENT, env.buf, 1); |
| 463 | strbuf_release(&env); |
| 464 | } |
| 465 | |
| 466 | void git_config_push_parameter(const char *text) |
| 467 | { |
no test coverage detected