From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 40B8A158094 for ; Wed, 13 Jul 2022 05:27:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0192E0DA5; Wed, 13 Jul 2022 05:27:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CF8AEE0DA5 for ; Wed, 13 Jul 2022 05:27:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7DA33340B29 for ; Wed, 13 Jul 2022 05:26:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BEC5C52C for ; Wed, 13 Jul 2022 05:26:57 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1657689709.78a5911061ca302505f86aaefd94a392f5c958a1.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: plugin/gentoo-common.vim X-VCS-Directories: plugin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 78a5911061ca302505f86aaefd94a392f5c958a1 X-VCS-Branch: master Date: Wed, 13 Jul 2022 05:26:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 464461e7-678e-4732-8676-a06fe4d2757c X-Archives-Hash: 148a1df20ecedee1737e25653f5b10c3 commit: 78a5911061ca302505f86aaefd94a392f5c958a1 Author: Anna Vyalkova sysrq in> AuthorDate: Wed Jun 22 14:27:59 2022 +0000 Commit: Michał Górny gentoo 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 sysrq.in> Closes: https://github.com/gentoo/gentoo-syntax/pull/47 Signed-off-by: Michał Górny 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