我觉得他们确实有 ![]()
![]()
![]()
lib/docker_manager/upgrader.rb
- run "cd #{repo.path} && git checkout main"
- else
- run "cd #{repo.path} && git branch -m master main"
- end
- run "cd #{repo.path} && git fetch origin --tags --force"
- run "cd #{repo.path} && git branch -u origin/main main"
- run("cd #{repo.path} && git reset --hard HEAD@{upstream}")
- else
- run("cd #{repo.path} && git fetch --tags --prune-tags --prune --force")
- if repo.detached_head?
- run("cd #{repo.path} && git reset --hard")
- run("cd #{repo.path} && git -c advice.detachedHead=false checkout #{repo.tracking_ref}")
- else
- run("cd #{repo.path} && git reset --hard HEAD@{upstream}")
- end
- end
- percent(20 * (index + 1) / @repos.size)
- end