X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGitalist%2FURIStructure%2FCommit.pm;h=01bb7615b971703ae195eafe13a6b3f8faebcf6e;hb=dcb1b9274df97bb163f7c0fb3b9aa80c31255cae;hp=584b47173e6fb0cfc99134d3a343bfb249fd3e46;hpb=9c96c2353321cd52789e2df03501a890c48f1e7b;p=catagits%2FGitalist.git diff --git a/lib/Gitalist/URIStructure/Commit.pm b/lib/Gitalist/URIStructure/Commit.pm index 584b471..01bb761 100644 --- a/lib/Gitalist/URIStructure/Commit.pm +++ b/lib/Gitalist/URIStructure/Commit.pm @@ -14,7 +14,7 @@ after 'base' => sub { sub find : Chained('base') PathPart('') CaptureArgs(1) { my ($self, $c, $sha1part) = @_; # FIXME - Should not be here! - $c->stash->{Commit} = $c->stash->{Repository}->get_object($sha1part) + $c->stash->{Commit} = $c->stash->{Repository}->get_object_or_head($sha1part) or $c->detach('/error404', "Couldn't find a object for '$sha1part' in XXXX!"); }