commit:     78a5911061ca302505f86aaefd94a392f5c958a1
Author:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Jun 22 14:27:59 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Jul 13 05:21:49 2022 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=78a59110

gentoo-common: fix "Undefined variable: git"

Closes: https://bugs.gentoo.org/842249
Signed-off-by: Anna Vyalkova <cyber+gentoo <AT> sysrq.in>
Closes: https://github.com/gentoo/gentoo-syntax/pull/47
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 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

Reply via email to