diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-07 12:35:04 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-07 12:35:04 +0200 |
commit | 8dce66234ffa27726bd2aa19db754d2f394c3e7c (patch) | |
tree | 8ba71ec9ade275cdc01901a438665a5ede9bba9b | |
parent | 4b7c2f0b503eb7400cee4cd5011733d689393691 (diff) | |
download | gitlab-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.rb | 2 |
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 |