commit: 526aeb1acda9504a4293b2a221700f6441211a7d Author: Adrian <git <AT> nexadn <DOT> de> AuthorDate: Fri Dec 2 17:58:42 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Dec 4 14:47:46 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=526aeb1a
GentooGetUser(): Drop --global option for git config Omitting the --global option when obtaining git config values results in git returning the repo-local config option, if set, and the global value otherwise. This allows devs with a repo-specific git config (e.g. with an alternate E-Mail address for Gentoo-specific projects) to have the correct email address e.g. for creating metadata.xml retrieved automatically. Signed-off-by: Adrian Schollmeyer <git <AT> nexadn.de> Closes: https://github.com/gentoo/gentoo-syntax/pull/50 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> plugin/gentoo-common.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim index a50f690..faa8f6c 100644 --- a/plugin/gentoo-common.vim +++ b/plugin/gentoo-common.vim @@ -13,7 +13,7 @@ let g:loaded_gentoo_common=1 fun! GentooGetUser() let l:result = expand("\$ECHANGELOG_USER") if l:result ==# "\$ECHANGELOG_USER" - let l:gitcfg = "git config --global " + let l:gitcfg = "git config " if executable("git") let l:email = trim(system(l:gitcfg . "user.email")) let l:name = trim(system(l:gitcfg . "user.name"))