aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian <git@nexadn.de>2022-12-02 18:58:42 +0100
committerMichał Górny <mgorny@gentoo.org>2022-12-04 15:47:46 +0100
commit526aeb1acda9504a4293b2a221700f6441211a7d (patch)
tree0e6712c11c7da45de1ef96a8999aaf8b37903c9d
parentFix tag rule for multiple existing tags (diff)
downloadgentoo-syntax-526aeb1acda9504a4293b2a221700f6441211a7d.tar.gz
gentoo-syntax-526aeb1acda9504a4293b2a221700f6441211a7d.tar.bz2
gentoo-syntax-526aeb1acda9504a4293b2a221700f6441211a7d.zip
GentooGetUser(): Drop --global option for git configv4
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@nexadn.de> Closes: https://github.com/gentoo/gentoo-syntax/pull/50 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--plugin/gentoo-common.vim2
1 files changed, 1 insertions, 1 deletions
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"))