From: Bert Wesarg Date: Sun, 06 Dec 2009 12:59:22 GMT Subject: Re: [PATCHv3 0/3] git-gui: more robust handling of fancy repos Message-ID: <36ca99e90912060459u1073288bj2114f8ab56c7224b@mail.gmail.com> In-Reply-To: On Sun, Dec 6, 2009 at 09:14, Giuseppe Bilotta wrote: > On Tue, Oct 27, 2009 at 12:35 PM, Bert Wesarg > wrote: >> >> I would also suggest to always export GIT_DIR into the environment, so >> that guitools can relay on this. > > I'm sorry I couldn't reply to this email earlier. I have never used > this feature, but if you can provide some example guitools > configuration I'll gladly move the environment export earlier and test > it. Here it is: [guitool "exclude/Ignore file"] cmd = echo \"$FILENAME\" >> \"${GIT_DIR:=.git}/info/exclude\" noconsole = yes needsfile = yes The purpose is simple: add the current file to the info/exclude file in the git dir As you can see, I have a workaround for not having GIT_DIR in the env, which should solve the issue. But it would be nice to rely on this. Bert > > -- > Giuseppe "Oblomov" Bilotta >