tunasync-scripts icon indicating copy to clipboard operation
tunasync-scripts copied to clipboard

git-recursive脚本同步git仓库时,工作不正常

Open Fearyncess opened this issue 2 years ago • 3 comments

配置:

#/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的其他仓库没有被正确执行同步。

Fearyncess avatar Apr 25 '23 09:04 Fearyncess

这是由于他的 .gitmodule 中使用了相对路径 url 而不是绝对路径

	url = ../system.git

如果该路径如下应该能继续工作

        url = https://github.com/boostorg/system.git

相对路径 url 的实现没有 ETA。

ZenithalHourlyRate avatar Apr 25 '23 10:04 ZenithalHourlyRate

这是由于他的 .gitmodule 中使用了相对路径 url 而不是绝对路径

	url = ../system.git

如果该路径如下应该能继续工作

        url = https://github.com/boostorg/system.git

相对路径 url 的实现没有 ETA。

原来如此 如果是qemu那种写死了绝对路径的就可以了是吧

Fearyncess avatar Apr 26 '23 10:04 Fearyncess

原来如此 如果是qemu那种写死了绝对路径的就可以了是吧

是的

ZenithalHourlyRate avatar Apr 26 '23 14:04 ZenithalHourlyRate