summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-07 12:35:04 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-07 12:35:04 +0200
commit8dce66234ffa27726bd2aa19db754d2f394c3e7c (patch)
tree8ba71ec9ade275cdc01901a438665a5ede9bba9b
parent4b7c2f0b503eb7400cee4cd5011733d689393691 (diff)
downloadgitlab-ce-8dce66234ffa27726bd2aa19db754d2f394c3e7c.tar.gz
Fetch to mr code from fork to iid
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/models/merge_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb
index 631a2d887cc..467b90861f9 100644
--- a/app/models/merge_request.rb
+++ b/app/models/merge_request.rb
@@ -432,7 +432,7 @@ class MergeRequest < ActiveRecord::Base
target_project.repository.fetch_ref(
source_project.repository.path_to_repo,
"refs/heads/#{source_branch}",
- "refs/merge-requests/#{id}/head"
+ "refs/merge-requests/#{iid}/head"
)
end