]> source.dussan.org Git - gitea.git/commit
Pass `--global` when calling `git config --get`, for consistency with `git config...
authorPhilip Peterson <philip-peterson@users.noreply.github.com>
Tue, 28 Feb 2023 21:26:19 +0000 (16:26 -0500)
committerGitHub <noreply@github.com>
Tue, 28 Feb 2023 21:26:19 +0000 (15:26 -0600)
commitcbbd3726b4edb3c2bda59610050fd5af149fbdb1
treeb9455f6bf0be36e0b6dd88dd3cf15312f9408f2a
parentf5987c24e2b561952ebf9a2485b863325c16ee48
Pass `--global` when calling `git config --get`, for consistency with `git config --set` (#23157)

This arose out of #22451; it seems we are checking using non-global
settings to see if a config value is set, in order to decide whether to
call another global(-indeed) configuration command. This PR changes it
so that both the check and the set are for global configuration.
modules/git/git.go