]> git.ipfire.org Git - thirdparty/git.git/commit
submodule: fix status of initialized but not cloned submodules
authorPeter Kaestle <peter.kaestle@nokia.com>
Fri, 24 Jan 2020 10:34:04 +0000 (11:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Jan 2020 18:14:00 +0000 (10:14 -0800)
commit3b2885ec9ba0b1328858231c9f5095e7f85d9f23
tree72fe6c18f213372acc827d00b2cffa58917da059
parentace912bfb8e0cf85e29cc2d81fd847a96637be36
submodule: fix status of initialized but not cloned submodules

Original bash helper for "submodule status" was doing a check for
initialized but not cloned submodules and prefixed the status with
a minus sign in case no .git file or folder was found inside the
submodule directory.

This check was missed when the original port of the functionality
from bash to C was done.

Signed-off-by: Peter Kaestle <peter.kaestle@nokia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
t/t7400-submodule-basic.sh