author | Johannes Schindelin <johannes.schindelin@gmx.de> | |
Thu, 2 Apr 2009 13:30:25 +0000 (15:30 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 2 Apr 2009 20:16:42 +0000 (13:16 -0700) | ||
commit | bef3894847118ab8c8668ddc90fa238ae9e05baa | |
tree | cc0f8e7e6a15179d61c83cfbaca53db380a35ad0 | tree | snapshot |
parent | 763481787174adfcc247d6044bea330edcb2cc24 | commit | diff |
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>
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 | diff | blob | history | |
t/t2013-checkout-submodule.sh | [new file with mode: 0755] | blob |