summaryrefslogtreecommitdiff
path: root/builtin-checkout.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-07 22:33:02 -0700
committerJunio C Hamano <gitster@pobox.com>2009-04-07 22:33:02 -0700
commita9906723b23b058cffadaf5db9d87b67384c60c3 (patch)
tree2f84e6ebe8c98a1cbcd699ee7504e7151d56e9f0 /builtin-checkout.c
parent2149e0f6a66cb4a5707ef6201763051d94f288af (diff)
parentbef3894847118ab8c8668ddc90fa238ae9e05baa (diff)
downloadgit-a9906723b23b058cffadaf5db9d87b67384c60c3.tar.gz
Merge branch 'js/maint-submodule-checkout'
* js/maint-submodule-checkout: Fix 'git checkout <submodule>' to update the index
Diffstat (limited to 'builtin-checkout.c')
-rw-r--r--builtin-checkout.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/builtin-checkout.c b/builtin-checkout.c
index 33d1fecb62..2e4fe1a453 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;