[PATCH 0/2] Fix git add with submodules
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 9, 2013, 09:21 UTC
- Message-ID
- <1365499297-8667-1-git-send-email-artagnon@gmail.com>
- In-Reply-To
- <CALkWK0m_82ThYKxcr=YHGBnOaHr9yBpYFHxx2KrnQkWD_zjp1A@mail.gmail.com>
Hi,
git add has a bug when operating on submodules. The following test fails:
mkdir submodule_dir && ( cd submodule_dir && git init && cat >foo <<-\EOF && Some content EOF git add foo && git commit -a -m "Add foo" ) && test_must_fail git add submodule_dir/foo
[1/2] adds this failing test along with a passing related test. [2/2] fixes the failing test.
Ramkumar Ramachandra (2): t3700 (add): add two tests for testing add with submodules add: refuse to add paths beyond repository boundaries
builtin/add.c | 5 +++-- cache.h | 2 ++ pathspec.c | 12 ++++++++++++ pathspec.h | 1 + symlinks.c | 43 +++++++++++++++++++++++++++++++++++++------ t/t3700-add.sh | 32 ++++++++++++++++++++++++++++++++ 6 files changed, 87 insertions(+), 8 deletions(-)
-- 1.8.2.1.347.gdd82260.dirty