git-annex/doc/submodules/comment_11_78fffae9facce1600915bc19429d81e2._comment

18 lines
699 B
Text
Raw Normal View History

2024-02-22 16:54:16 +00:00
[[!comment format=mdwn
username="joey"
subject="""Re: comment 6"""
date="2024-02-22T16:50:34Z"
content="""
@TTTTAAAx kindly posted a full example of their problem,
which I've moved to
[[todo/detect_and_handle_submodules_after_path_changed_by_mv]].
I do think that using `git mv` to rename directories that contain
submodules is the right way to avoid that kind of problem.
Note that renaming such a directory without using git followed by running
`git add` on the new directory has the same behavior as running
`git-annex assist` does. This is not a git-annex problem, but I think it
could be considered a git problem; git could make `git add` of a moved
submodule do the right thing.
"""]]