diff options
author | Anna Vyalkova <cyber+gentoo@sysrq.in> | 2022-06-22 19:27:59 +0500 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-07-13 07:21:49 +0200 |
commit | 78a5911061ca302505f86aaefd94a392f5c958a1 (patch) | |
tree | 81a80351bda4d70ca96be02dcaaa9c1331d18e6b | |
parent | syntax/ebuild: update eclassdoc syntax (diff) | |
download | gentoo-syntax-78a5911061ca302505f86aaefd94a392f5c958a1.tar.gz gentoo-syntax-78a5911061ca302505f86aaefd94a392f5c958a1.tar.bz2 gentoo-syntax-78a5911061ca302505f86aaefd94a392f5c958a1.zip |
gentoo-common: fix "Undefined variable: git"
Closes: https://bugs.gentoo.org/842249
Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in>
Closes: https://github.com/gentoo/gentoo-syntax/pull/47
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | plugin/gentoo-common.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim index 5c704ab..a50f690 100644 --- a/plugin/gentoo-common.vim +++ b/plugin/gentoo-common.vim @@ -14,7 +14,7 @@ fun! GentooGetUser() let l:result = expand("\$ECHANGELOG_USER") if l:result ==# "\$ECHANGELOG_USER" let l:gitcfg = "git config --global " - if executable(git) + if executable("git") let l:email = trim(system(l:gitcfg . "user.email")) let l:name = trim(system(l:gitcfg . "user.name")) else |