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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 67654158020 for ; Sun, 4 Dec 2022 14:47:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 90B78E07D8; Sun, 4 Dec 2022 14:47:58 +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 6940CE07D8 for ; Sun, 4 Dec 2022 14:47:58 +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 3D55B3412D3 for ; Sun, 4 Dec 2022 14:47:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8993D621 for ; Sun, 4 Dec 2022 14:47:55 +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: <1670165266.526aeb1acda9504a4293b2a221700f6441211a7d.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: 526aeb1acda9504a4293b2a221700f6441211a7d X-VCS-Branch: master Date: Sun, 4 Dec 2022 14:47:55 +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: 456207ec-66f4-4199-9d8a-a524bbcdb36a X-Archives-Hash: b1106355fc187f50ff16c2409855def2 commit: 526aeb1acda9504a4293b2a221700f6441211a7d Author: Adrian nexadn de> AuthorDate: Fri Dec 2 17:58:42 2022 +0000 Commit: Michał Górny gentoo 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 nexadn.de> Closes: https://github.com/gentoo/gentoo-syntax/pull/50 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 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"))