* git add after changing a submodule
@ 2008-04-04 20:50 Pat Maddox
0 siblings, 0 replies; only message in thread
From: Pat Maddox @ 2008-04-04 20:50 UTC (permalink / raw)
To: git
If I make a change to a submodule and commit it, I then have to add it
to the parent repo. If I do
git add path/to/submodule
then it works fine. But if I do
git add path/to/submodule/ (with trailing slash)
then it blows away the submodule and adds all the files in that directory.
Seems pretty dangerous to me. I know that I can just use git commit
-a to do it, but I'd like to prevent the mistake of adding the path
and screwing up the repo. Is it possible to protect the submodules a
bit more?
Pat
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-04 20:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 20:50 git add after changing a submodule Pat Maddox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).