mirror of
https://git.proxmox.com/git/libgit2
synced 2025-11-03 16:29:14 +00:00
config: do not set an error for GIT_ENOTFOUND
An unset config variable isn't bad per se -- let the call site set an error in case GIT_ENOTFOUND isn't acceptable.
This commit is contained in:
parent
f7ed0c3447
commit
e203e9d472
@ -391,7 +391,6 @@ int git_config_get_string(const char **out, git_config *cfg, const char *name)
|
||||
return ret;
|
||||
}
|
||||
|
||||
giterr_set(GITERR_CONFIG, "Config variable '%s' not found", name);
|
||||
return GIT_ENOTFOUND;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user