Re: [PATCH] gitweb: Silence stderr in parse_commit*() subroutines
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 13, 2012, 18:44 UTC
- Message-ID
- <7vmx8mfu8k.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <201202111402.31684.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> 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.