tunasync-scripts
tunasync-scripts copied to clipboard
git-recursive脚本同步git仓库时,工作不正常
配置:
#/etc/tunasync/mirrors.conf.d/boost.conf
[[mirrors]]
name = "boost.git"
provider = "command"
command = "/home/tunasync-scripts/git-recursive.sh"
upstream = "https://github.com/boostorg/boost.git"
docker_image = "tunathu/tunasync-scripts:latest"
size_pattern = "size-pack: ([0-9\\.]+[KMGTP])"
[mirrors.env]
MIRROR_BASE_URL="http://mirror.example.com/"
WORKING_DIR_BASE="/srv/git-mirror/"
GENERATED_SCRIPT="/srv/git-mirror/boost-git.sh"
RECURSIVE="1"
日志:http://fars.ee/pGah
worker日志提示该镜像任务Success,但查看内容时发现,实际只同步了url中指定的仓库。而里面submodules的其他仓库没有被正确执行同步。
这是由于他的 .gitmodule 中使用了相对路径 url 而不是绝对路径
url = ../system.git
如果该路径如下应该能继续工作
url = https://github.com/boostorg/system.git
相对路径 url 的实现没有 ETA。
这是由于他的 .gitmodule 中使用了相对路径 url 而不是绝对路径
url = ../system.git如果该路径如下应该能继续工作
url = https://github.com/boostorg/system.git相对路径 url 的实现没有 ETA。
原来如此 如果是qemu那种写死了绝对路径的就可以了是吧
原来如此 如果是qemu那种写死了绝对路径的就可以了是吧
是的