Code

gitweb: check given hash before trying to create snapshot
authorMark Rada <marada@uwaterloo.ca>
Sat, 26 Sep 2009 17:46:08 +0000 (13:46 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 29 Sep 2009 17:06:51 +0000 (10:06 -0700)
commitfdb0c36e903d13c184f9a465035c75565c5c072a
treec7deeda56ce7eb610db3ec4c44e671b96fe8203d
parent1be224ba6e99f0ab34c998d7fa8023b76a15c8b6
gitweb: check given hash before trying to create snapshot

Makes things nicer in cases when you hand craft the snapshot URL but
make a typo in defining the hash variable (e.g. netx instead of next);
you will now get an error message instead of a broken tarball.

Tests for t9501 are included to demonstrate added functionality.

Signed-off-by: Mark Rada <marada@uwaterloo.ca>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
gitweb/gitweb.perl
t/t9501-gitweb-standalone-http-status.sh