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:
authorLin Jen-Shin <godfat@godfat.org>2016-11-15 03:10:32 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-11-15 03:10:32 +0300
commit39d83f72e7af78d503ef278e22eda25f90322f4b (patch)
treebdf92472695fe2ab683f663c0251a16a1b3239df /app/services/files
parenta68a62011d03c15d6116dc1e6dcb9514040a51f5 (diff)
Add a few comments to explain implementation detail
Diffstat (limited to 'app/services/files')
-rw-r--r--app/services/files/base_service.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb
index fd62246eddb..8689c83d40e 100644
--- a/app/services/files/base_service.rb
+++ b/app/services/files/base_service.rb
@@ -75,6 +75,9 @@ module Files
validate_target_branch
if @source_project != project
+ # Make sure we have the source_branch in target project,
+ # and use source_branch as target_branch directly to avoid
+ # unnecessary source branch in target project.
@project.fetch_ref(@source_project, @target_branch, @source_branch)
end
end