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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to