From: Junio C Hamano Date: Mon, 13 Feb 2012 18:44:59 GMT Subject: Re: [PATCH] gitweb: Silence stderr in parse_commit*() subroutines Message-ID: <7vmx8mfu8k.fsf@alter.siamese.dyndns.org> In-Reply-To: <201202111402.31684.jnareb@gmail.com> Jakub Narebski writes: > Anyway, here is the patch that should fix those "CGI: fatal: Not a valid > object name HEAD" errors for you. I have to wonder if it is simpler and less error prone to check HEAD before doing anything else immediately after which repository is being consulted, and give the same "no history at all yet in this project" page for most if not all operations, instead of patching things up at this deep in the callchain.