]> 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:27 +0000 (17:53 -0500)
committerGitHub <noreply@github.com>
Tue, 28 Feb 2023 22:53:27 +0000 (17:53 -0500)
commitf5f4a8d02ad5b86336dae57b62ea5e6e12f1256f
treeaf0baf101d3dc27dbe16b2aaa8af18c7eae9a55a
parent543322f81fea6c8e52725bebf48f848b842ef676
Pass `--global` when calling `git config --get`, for consistency with `git config --set` (#23157) (#23198)

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