Showing 1 changed files with 6 additions and 0 deletions
+6
templates/compare.html.ep
... ...
@@ -63,6 +63,12 @@
63 63
     
64 64
     # Create working repository if it don't exist
65 65
     $self->app->manager->create_rep_work($user, $project);
66
+    
67
+    # Fetch repository
68
+    my $rep = $self->app->rep_path($user, $project);
69
+    my @git_fetch_cmd = $self->app->git->cmd_rep_work($user, $project, 'fetch', $rep);
70
+    Gitprep::Util::run_command(@git_fetch_cmd)
71
+      or Carp::croak "Can't execute git fetch: @git_fetch_cmd";
66 72
   }
67 73
   
68 74
   layout 'common', title => "Comparing $from_rev...$rev \x{30fb} $user/$project";