git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Pat Maddox" <pergesu@gmail.com>
To: git@vger.kernel.org
Subject: git add after changing a submodule
Date: Fri, 4 Apr 2008 13:50:48 -0700	[thread overview]
Message-ID: <810a540e0804041350u7fe4a5c4t7e86274e188e3e91@mail.gmail.com> (raw)

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

                 reply	other threads:[~2008-04-04 20:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=810a540e0804041350u7fe4a5c4t7e86274e188e3e91@mail.gmail.com \
    --to=pergesu@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).