Skip to content

关于同步镜像报错问题 #1

@dzhyw

Description

@dzhyw

gitlab 仓库group下面有多个subgroup ,我对一个组下面的仓库进行mirror,运行一半会出现代码冲突报错

cmdline: git push --force ssh://git@10.9.135.21:22/hw/spacetime --tags
stderr: 'Warning: Permanently added '10.9.135.21' (ECDSA) to the list of known hosts.
remote: fatal error: runtime: out of memory
remote:
remote: runtime stack:

或者报代码分支保护。冲突
File "/usr/local/lib/python3.6/site-packages/git/cmd.py", line 924, in execute
raise GitCommandError(redacted_command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
cmdline: git push --force ssh://git@10.9.135.21:22/hw/network_analysis --all
stderr: 'Warning: Permanently added '10.9.135.21' (ECDSA) to the list of known hosts.
remote: GitLab: You are not allowed to force push code to a protected branch on this project.To ssh://git@10.9.135.21:22/hw/network_analysis
! [remote rejected] master -> master (pre-receive hook declined)
! [remote rejected] yuxin_1 -> yuxin_1 (pre-receive hook declined)
! [remote rejected] e2e -> e2e (pre-receive hook declined)
! [remote rejected] scorpio_exploration -> scorpio_exploration (pre-receive hook declined)
! [remote rejected] zhaohaolin -> zhaohaolin (pre-receive hook declined)
error: failed to push some refs to 'ssh://git@10.9.135.21:22/hw/network_analysis''

还有2个问题
1.假设group下面有50个repo,能否支持并行执行或者协程形式执行?
2. 我看里面是通过clone参数下载的,并没有使用--mirror参数?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions