unpack-trees: move ERROR_WOULD_LOSE_SUBMODULE earlier
commitcd002c15611a995a29b9e5881745bba402d63952
authorElijah Newren <newren@gmail.com>
Fri, 27 Mar 2020 00:48:55 +0000 (27 00:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 27 Mar 2020 18:33:30 +0000 (27 11:33 -0700)
tree84ee5fa8e6d521a8d9d81d0d96f6bbba711d0238
parent4ee5d50fc39f8d41f67c3c9a936084fb914c9a50
unpack-trees: move ERROR_WOULD_LOSE_SUBMODULE earlier

A minor change, but we want to convert the sparse messages to warnings
and this allows us to group warnings and errors.

Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c
unpack-trees.h