Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fearyncess opened this issue Apr 25, 2023 · 3 comments
Open

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

Fearyncess opened this issue Apr 25, 2023 · 3 comments

Comments

@Fearyncess
Copy link

Fearyncess commented Apr 25, 2023

配置:

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

@ZenithalHourlyRate
Copy link
Contributor

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

	url = ../system.git

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

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

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

@Fearyncess
Copy link
Author

Fearyncess commented Apr 26, 2023

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

	url = ../system.git

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

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

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

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

@ZenithalHourlyRate
Copy link
Contributor

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

是的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants