]> source.dussan.org Git - gitea.git/commit
Pass `--global` when calling `git config --get`, for consistency with `git config...
authorGiteabot <teabot@gitea.io>
Tue, 28 Feb 2023 22:53:15 +0000 (17:53 -0500)
committerGitHub <noreply@github.com>
Tue, 28 Feb 2023 22:53:15 +0000 (17:53 -0500)
commit13918ad344e197d547e49538c98641c4e9d68b64
tree21cf7be722927233bf1ac6b7f7a5ab576c6057cf
parent7528ce60e77ae438efdd1b4f0a9c4a06d3ee2eb4
Pass `--global` when calling `git config --get`, for consistency with `git config --set` (#23157) (#23199)

Backport #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.

Co-authored-by: Philip Peterson <philip-peterson@users.noreply.github.com>
modules/git/git.go