Revision 431acd2de89ad5ec0a3e6ae6141e699c4a824ae1 authored by Jeff King on 11 June 2018, 08:35:40 UTC, committed by Junio C Hamano on 11 June 2018, 17:56:04 UTC
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>
1 parent b7b1fca
Computing file changes ...