Showing 1 changed files with 6 additions and 3 deletions
+6 -3
templates/pull.html.ep
... ...
@@ -7,6 +7,9 @@
7 7
   my $project_id = param('project');
8 8
   my $row_id = param('row_id');
9 9
   
10
+  # Repository information
11
+  my $rep_info = app->rep_info($user_id, $project_id);
12
+  
10 13
   # Git
11 14
   my $git = $self->app->git;
12 15
   
... ...
@@ -23,7 +26,7 @@
23 26
   my $branch2 = $pull_request->{branch2};
24 27
   
25 28
   # Commits
26
-  my $commits = $git->forward_commits(app->rep_info($user_id, $project_id), $branch1, $branch2);
29
+  my $commits = $git->forward_commits($rep_info, $branch1, $branch2);
27 30
   my $commits_count = @$commits;
28 31
   my $commits_date = {};
29 32
   my $authors = {};
... ...
@@ -36,10 +39,10 @@
36 39
   my $authors_count = keys %$authors;
37 40
 
38 41
   # Start commit
39
-  my $start_commit = $git->separated_commit(app->rep_info($user_id, $project_id), $branch1, $branch2);
42
+  my $start_commit = $git->separated_commit($rep_info, $branch1, $branch2);
40 43
 
41 44
   # End commit
42
-  my $end_commit = $git->get_commit(app->rep_info($user_id, $project_id), $branch2);
45
+  my $end_commit = $git->get_commit($rep_info, $branch2);
43 46
   
44 47
   # Pull request first message 
45 48
   my $pull_request_message_first = app->dbi->model('pull_request_message')->select(