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>
This commit is contained in:

committed by
Junio C Hamano

parent
ace912bfb8
commit
3b2885ec9b
@ -377,7 +377,7 @@ test_expect_success 'init should register submodule url in .git/config' '
|
||||
test_cmp expect url
|
||||
'
|
||||
|
||||
test_expect_failure 'status should still be "missing" after initializing' '
|
||||
test_expect_success 'status should still be "missing" after initializing' '
|
||||
rm -fr init &&
|
||||
mkdir init &&
|
||||
git submodule status >lines &&
|
||||
|
Reference in New Issue
Block a user