summaryrefslogtreecommitdiff
path: root/lib/gitlab/email
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-03 14:16:16 +0100
committerGrzegorz Bizon <grzegorz.bizon@ntsn.pl>2015-12-08 08:43:09 +0100
commit75c6b29f6b15e164717c27e6c3d7eecb84c923f8 (patch)
tree61968366cc8185c053cd43c8db7625500032d702 /lib/gitlab/email
parent360a96a299397cbb5f8b15f916a9efd5962ff6be (diff)
downloadgitlab-ce-75c6b29f6b15e164717c27e6c3d7eecb84c923f8.tar.gz
Add `RepositoryPush` specs
Diffstat (limited to 'lib/gitlab/email')
-rw-r--r--lib/gitlab/email/message/repository_push.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gitlab/email/message/repository_push.rb b/lib/gitlab/email/message/repository_push.rb
index bc8aece733f..3526eb2cad9 100644
--- a/lib/gitlab/email/message/repository_push.rb
+++ b/lib/gitlab/email/message/repository_push.rb
@@ -87,17 +87,17 @@ module Gitlab
if @action == :push
if commits.length > 1 && compare
@urls.namespace_project_compare_url(project_namespace,
- project,
- from: Commit.new(compare.base, project),
- to: Commit.new(compare.head, project))
+ project,
+ from: Commit.new(compare.base, project),
+ to: Commit.new(compare.head, project))
else
@urls.namespace_project_commit_url(project_namespace,
- project, commits.first)
+ project, commits.first)
end
else
unless @action == :delete
@urls.namespace_project_tree_url(project_namespace,
- project, ref_name)
+ project, ref_name)
end
end
end