diff options
author | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-03 14:16:16 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzegorz.bizon@ntsn.pl> | 2015-12-08 08:43:09 +0100 |
commit | 75c6b29f6b15e164717c27e6c3d7eecb84c923f8 (patch) | |
tree | 61968366cc8185c053cd43c8db7625500032d702 /lib/gitlab/email/message | |
parent | 360a96a299397cbb5f8b15f916a9efd5962ff6be (diff) | |
download | gitlab-ce-75c6b29f6b15e164717c27e6c3d7eecb84c923f8.tar.gz |
Add `RepositoryPush` specs
Diffstat (limited to 'lib/gitlab/email/message')
-rw-r--r-- | lib/gitlab/email/message/repository_push.rb | 10 |
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 |