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:
authorStan Hu <stanhu@gmail.com>2019-04-14 07:47:52 +0300
committerOswaldo Ferreira <>2019-04-19 04:01:51 +0300
commit54d64ec9f62f5c271b3ed649530a3a2eaa482206 (patch)
tree3d95ada06c8f9685683e7ad902ee43e45b56b59e /lib/gitlab/git
parent26653eb0359002e9991bf5089c5505b566125f26 (diff)
Remove source_branch_name commit check
This should already be done in Gitlab::Git:Compare.
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r--lib/gitlab/git/repository.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb
index 6cebc9ac9eb..d7f5720c795 100644
--- a/lib/gitlab/git/repository.rb
+++ b/lib/gitlab/git/repository.rb
@@ -733,8 +733,6 @@ module Gitlab
def compare_source_branch(target_branch_name, source_repository, source_branch_name, straight:)
if source_repository == self
- return unless commit(source_branch_name).present?
-
return Gitlab::Git::Compare.new(self, target_branch_name, source_branch_name, straight: straight)
end