lib/gitlab/satellite/merge_action.rb
# Assumes a satellite exists that is a fresh clone of the projects repo, prepares satellite for merges, diffs etc
Assumes a satellite exists that is a fresh clone of the projects repo, prepares satellite for merges, diffs etc
Assumes a satellite exists that is a fresh clone of the projects repo prepares satellite for merges diffs etc
def update_satellite_source_and_target!(repo)
        repo.remote_add('source', merge_request.source_project.repository.path_to_repo)
        repo.remote_fetch('source')
        repo.git.checkout(default_options({b: true}), merge_request.target_branch, "origin/#{merge_request.target_branch}")
      rescue Grit::Git::CommandFailed => ex
        handle_exception(ex)
      end
def update_satellite_source_and_target! ( repo ) repo . remote_add ( 'source' , merge_request . source_project . repository . path_to_repo ) repo . remote_fetch ( 'source' ) repo . git . checkout ( default_options ( { b : true } ) , merge_request . target_branch , "origin/#{merge_request.target_branch}" ) rescue Grit :: Git :: CommandFailed => ex handle_exception ( ex ) end
Assumes a satellite exists that is a fresh clone of the projects repo, prepares satellite for merges, diffs etc
Assumes a satellite exists that is a fresh clone of the projects repo prepares satellite for merges diffs etc
repo