gitweb: check given hash before trying to create snapshot