Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Cc: robbat2@g.o, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH] egencache --update-changelogs: Respect GIT_DIR
Date: Mon, 09 Nov 2015 07:36:21
Message-Id: 56404CEE.7030306@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH] egencache --update-changelogs: Respect GIT_DIR by "Michał Górny"
1 On 11/08/2015 11:24 PM, Michał Górny wrote:
2 > @@ -886,7 +884,7 @@ class GenChangeLogs(object):
3 > repo_path = self._portdb.porttrees[0]
4 > os.chdir(repo_path)
5 >
6 > - if 'git' not in FindVCS():
7 > + if not os.path.isdir(os.environ.get('GIT_DIR', '.git')):
8 > writemsg_level(
9 > "ERROR: --update-changelogs supported only in git repos\n",
10 > level=logging.ERROR, noiselevel=-1)
11 >
12
13 Looks good.
14 --
15 Thanks,
16 Zac