Skip to content
Snippets Groups Projects
Commit acda0cd4 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

@tree_edit_project is no longer used

parent 4587c78a
No related branches found
No related tags found
No related merge requests found
Loading
@@ -101,7 +101,6 @@ module CreatesCommit
Loading
@@ -101,7 +101,6 @@ module CreatesCommit
def set_commit_variables def set_commit_variables
if can?(current_user, :push_code, @project) if can?(current_user, :push_code, @project)
# Edit file in this project # Edit file in this project
@tree_edit_project = @project
@mr_source_project = @project @mr_source_project = @project
   
if @project.forked? if @project.forked?
Loading
@@ -114,10 +113,8 @@ module CreatesCommit
Loading
@@ -114,10 +113,8 @@ module CreatesCommit
@mr_target_branch = @ref || @target_branch @mr_target_branch = @ref || @target_branch
end end
else else
# Edit file in fork
@tree_edit_project = current_user.fork_of(@project)
# Merge request from fork to this project # Merge request from fork to this project
@mr_source_project = @tree_edit_project @mr_source_project = current_user.fork_of(@project)
@mr_target_project = @project @mr_target_project = @project
@mr_target_branch = @ref || @target_branch @mr_target_branch = @ref || @target_branch
end end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment