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
History
File Mode Size
files-backend.c -rw-r--r-- 84.4 KB
iterator.c -rw-r--r-- 10.5 KB
packed-backend.c -rw-r--r-- 44.0 KB
packed-backend.h -rw-r--r-- 1.2 KB
ref-cache.c -rw-r--r-- 14.0 KB
ref-cache.h -rw-r--r-- 8.8 KB
refs-internal.h -rw-r--r-- 23.7 KB

back to top