Change to the new model
Tomas Doran [Sun, 8 Nov 2009 23:49:59 +0000 (23:49 +0000)]
lib/Gitalist/Controller/Root.pm

index 8528f2d..49d36fa 100644 (file)
@@ -474,7 +474,7 @@ sub header {
   }
 
   $c->stash->{version}     = $c->config->{version};
-  $c->stash->{git_version} = $c->model()->run_cmd('--version');
+  $c->stash->{git_version} = $c->model('GitRepos')->run_cmd('--version');
   $c->stash->{title}       = $title;
 
   #$c->stash->{baseurl} = $ENV{PATH_INFO} && uri_escape($base_url);