login
Header Space

 
 

git add after changing a submodule

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Friday, April 4, 2008 - 4:50 pm

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git add after changing a submodule, Pat Maddox, (Fri Apr 4, 4:50 pm)
speck-geostationary