Fix 'git checkout <submodule>' to update the index
commitbef3894847118ab8c8668ddc90fa238ae9e05baa
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 2 Apr 2009 13:30:25 +0000 (2 15:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Apr 2009 20:16:42 +0000 (2 13:16 -0700)
treecc0f8e7e6a15179d61c83cfbaca53db380a35ad0
parent763481787174adfcc247d6044bea330edcb2cc24
Fix 'git checkout <submodule>' to update the index

While 'git checkout <submodule>' should not update the submodule's
working directory, it should update the index.  This is in line with
how submodules are handled in the rest of Git.

While at it, test 'git reset [<commit>] <submodule>', too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c
t/t2013-checkout-submodule.sh [new file with mode: 0755]