From 8dce66234ffa27726bd2aa19db754d2f394c3e7c Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 7 Aug 2015 12:35:04 +0200 Subject: Fetch to mr code from fork to iid Signed-off-by: Dmitriy Zaporozhets --- app/models/merge_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1