Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan A. Sternberg <jonathansternberg@gmail.com>2014-04-10 20:41:20 +0400
committerJonathan A. Sternberg <jonathansternberg@gmail.com>2014-04-11 19:54:02 +0400
commit9cb2a4ac8abfe27ecbf1133aec7b29604f20c248 (patch)
tree6d06a22b796bc9b09aeefab4458c45e4bed01579 /app/mailers/emails
parent415c0f4bbe12dbd78bf24d50e66e3092df07fa21 (diff)
Fix emails on push service when a single commit is pushed
This fixes issue #161.
Diffstat (limited to 'app/mailers/emails')
-rw-r--r--app/mailers/emails/projects.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/emails/projects.rb b/app/mailers/emails/projects.rb
index 46aa34d13da..9f99c11ea30 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, @commits.first)
end
mail(from: sender(author_id),