From bef3894847118ab8c8668ddc90fa238ae9e05baa Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 2 Apr 2009 15:30:25 +0200 Subject: Fix 'git checkout ' to update the index While 'git checkout ' 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 [] ', too. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- builtin-checkout.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'builtin-checkout.c') diff --git a/builtin-checkout.c b/builtin-checkout.c index 20b34ce6e1..c0abe1ca77 100644 --- a/builtin-checkout.c +++ b/builtin-checkout.c @@ -53,9 +53,6 @@ static int update_some(const unsigned char *sha1, const char *base, int baselen, int len; struct cache_entry *ce; - if (S_ISGITLINK(mode)) - return 0; - if (S_ISDIR(mode)) return READ_TREE_RECURSIVE; -- cgit v1.2.1