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:
authorDouwe Maan <douwe@gitlab.com>2015-10-18 15:05:27 +0300
committerDouwe Maan <douwe@gitlab.com>2015-10-18 15:05:27 +0300
commitcc2b05adf80f55c9f0fe4b453f9f45e2b402c006 (patch)
tree81f68d195370a0fda5eee9e2487daf3669d2a8e3 /app/services
parent38785046f7ec7d834e22add66e4be88f6e985355 (diff)
Fix bug where a push would only create cross references from the first commit.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/git_push_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb
index e54044365b9..3de7bb9dcaa 100644
--- a/app/services/git_push_service.rb
+++ b/app/services/git_push_service.rb
@@ -79,7 +79,7 @@ class GitPushService
authors = Hash.new do |hash, commit|
email = commit.author_email
- return hash[email] if hash.has_key?(email)
+ next hash[email] if hash.has_key?(email)
hash[email] = commit_user(commit)
end