Git submodule absolute worktree path config

前端 未结 3 585
滥情空心
滥情空心 2021-02-05 17:46

This is my submodule redmine_dashboard config file:

Submodule config file:

[core]
    repositoryformatversion = 0
    filemode = true
         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 17:56

    Yes, you should be able to update the config file with a relative path. You should also update the worktree dir in the .git file in the submodule root to be a relative path back to that module.

    I believe this is fixed in (at least) the most current version of git (1.7.10.1). I can't seem to find a changelog, so I have no idea when it got fixed. I was able to have git fix the issue by deleting both the submodule and the folder in the .git/modules folder and then redoing git submodule init and git submodule update.

提交回复
热议问题