Thread (3 messages) flat view 3 messages, 2 authors, 2018-10-24

Re: Bug with "git mv" and submodules, and with "git submodule add something --force"

From: Junio C Hamano <hidden>
Date: 2018-10-24 07:18:29

Possibly related (same subject, not in this thread)

Stefan Beller [off-list ref] writes:
quoted
You would want to be able to remove a submodule and replace it with
a directory, but you can probably do it in two steps, i.e.

        git reset --hard
        git rm --cached sha1collisiondetection
        echo Now a regular dir >sha1collisiondetection/READ.ME
        find sha1collisiondetection ! -type d -print0 |
        git update-index --add --stdin -z
    "Ignoring path sha1collisiondetection/.git"

Nice!
There actually is another possible outcome that anybody following
along must be aware of and be careful about: not even .git directory
exist there, i.e. it is possible that the submodule has never been
init'ed.

So, it is not that nice X-<.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help