I have a submodule in my repo with a .git file that has just one line
gitdir: ../.git/modules/mysubmodule
However, the CI runner of gitlab seems to have problems with this gitdir
statement, so I want to move ../.git/modules/mysubmodule
to ./mysubmodule/.git
.
I did this using mv
I did not use git mv
, because this command complains with
fatal: cannot move directory over file, source=.git/modules/mysubmodule, destination=mysubmodule/.git
And I also removed the worktree
line from the mysubmodule/.git/config
file.
However, when I want to commit the changes (either to the superproject or the submodule), git lists no changes to commit.
This is why I am wondering how can I move the gitdir to another path?