t7400: testcase for submodule status on unregistered inner git repos
authorPeter Kaestle <redacted>
Sun, 2 Feb 2020 23:32:44 +0000 (00:32 +0100)
committerJunio C Hamano <redacted>
Tue, 4 Feb 2020 19:26:22 +0000 (11:26 -0800)
commitf38c92452d0ad75b1c5c5cfdd04223ad7a9a08a9
treeb97a9cf42802d307a6ccf22ed242db090b6da6e6
parent3b2885ec9ba0b1328858231c9f5095e7f85d9f23
t7400: testcase for submodule status on unregistered inner git repos

We have test coverage for "git submodule status" output in
various cases, i.e.

  1) not-init, not-cloned: status should initially be "missing"
  2) init, not-cloned: status should be "missing"
  3) not-init, cloned: status should ignore the inner git-repo
  4) init, cloned: status should be "up-to-date" after update
  4.1) + modified: status should be "modified" after submodule commit
  4.2) + modified, committed: status should be "up-to-date" after update

the case 3) is not covered yet.

Test that submodule status reports an inner git repo as unknown, while
it is not added to the superproject.  This covers case (3).

Signed-off-by: Peter Kaestle <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t7400-submodule-basic.sh
git clone https://git.99rst.org/PROJECT