Merge branch 'ps/maintenance-detach-fix'
Maintenance tasks other than "gc" now properly go background when "git maintenance" runs them. * ps/maintenance-detach-fix: run-command: fix detaching when running auto maintenance builtin/maintenance: add a `--detach` flag builtin/gc: add a `--detach` flag builtin/gc: stop processing log file on signal builtin/gc: fix leaking config values builtin/gc: refactor to read config into structure config: fix constness of out parameter for `git_config_get_expiry()`
This commit is contained in:
5
config.c
5
config.c
@ -2694,9 +2694,10 @@ void git_protected_config(config_fn_t fn, void *data)
|
||||
configset_iter(&protected_config, fn, data);
|
||||
}
|
||||
|
||||
int repo_config_get_expiry(struct repository *r, const char *key, const char **output)
|
||||
int repo_config_get_expiry(struct repository *r, const char *key, char **output)
|
||||
{
|
||||
int ret = repo_config_get_string(r, key, (char **)output);
|
||||
int ret = repo_config_get_string(r, key, output);
|
||||
|
||||
if (ret)
|
||||
return ret;
|
||||
if (strcmp(*output, "now")) {
|
||||
|
Reference in New Issue
Block a user