t7415: don't bother creating commit for symlink test
commit431acd2de89ad5ec0a3e6ae6141e699c4a824ae1
authorJeff King <peff@peff.net>
Mon, 11 Jun 2018 08:35:40 +0000 (11 04:35 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jun 2018 17:56:04 +0000 (11 10:56 -0700)
tree1399391ccb59a8cc11a142dc0461b5d394d42203
parentb7b1fca175f1ed7933f361028c631b9ac86d868d
t7415: don't bother creating commit for symlink test

Early versions of the fsck .gitmodules detection code
actually required a tree to be at the root of a commit for
it to be checked for .gitmodules. What we ended up with in
159e7b080b (fsck: detect gitmodules files, 2018-05-02),
though, finds a .gitmodules file in _any_ tree (see that
commit for more discussion).

As a result, there's no need to create a commit in our
tests. Let's drop it in the name of simplicity. And since
that was the only thing referencing $tree, we can pull our
tree creation out of a command substitution.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7415-submodule-names.sh