Method: MGit::Pull#simple_pull

Defined in:
lib/m-git/command/pull.rb

#simple_pull(argv) ⇒ Object



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# File 'lib/m-git/command/pull.rb', line 202

def simple_pull(argv)
  Output.puts_start_cmd

  # 优先pull配置仓库
  config_repo = generate_config_repo
  config_error = pull_config_repo(argv.cmd, argv.git_opts, config_repo)

  Output.puts_processing_message("开始pull子仓库...")
  _, error_repos = Workspace.execute_git_cmd_with_repos(argv.cmd, argv.git_opts, all_repos)

  if config_error.nil? && error_repos.length == 0
    Output.puts_succeed_cmd(argv.absolute_cmd)
  elsif !config_error.nil?
    Output.puts_fail_block([config_repo.name], "主仓库操作失败:#{config_error}")
  end

  # 情况中间态
  OperationProgressManager.remove_progress(Workspace.root, __progress_type)
end