viernes, 16 de mayo de 2014

Gitlab push on mail not working

The solution was in the issue:
https://github.com/gitlabhq/gitlabhq/issues/6725

Basically you should use this patch:

diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index 46aa34d..57ce69e 100644
--- a/app/mailers/emails/projects.rb
+++ b/app/mailers/emails/projects.rb
@@ -26,7 +26,7 @@ module Emails
       if @commits.length > 1
         @target_url = project_compare_url(@project, from: @commits.first, to: @commits.last)
       else
-        @target_url = project_commit_url(@project, @compare.commit)
+        @target_url = project_commit_url(@project, id: @compare.commit.id)
       end

       mail(from: sender(author_id), 
 
 
Or update your gitlab.