From: Timo Hirvonen Date: Wed, 21 Jun 2006 13:33:02 GMT Subject: Re: [PATCH 3/3] gitweb: Use --git-dir parameter instead of setting $ENV{'GIT_DIR'} Message-ID: <20060621163302.47271f89.tihirvon@gmail.com> In-Reply-To: <20060621130930.G421234bb@leonov.stosberg.net> Dennis Stosberg wrote: > - open my $fd, "-|", "$gitbin/git-cat-file -t $hash" or return; > + open my $fd, "-|", "$gitbin/git --git-dir=$git_dir cat-file -t $hash" or return; How about adding a function to simplify calling the git commands? Something like git("cat-file -t $hash") which would return "$gitbin/git --git-dir=$git_dir cat-file -t $hash" string. I'm not Perl programmer so I don't know what would be the best way to do this. -- http://onion.dynserv.net/~timo/