# Copyright (c) 2005 Junio C Hamano
 #
 
-test_description='git-checkout-cache test.
+test_description='git-checkout-index test.
 
 This test registers the following filesystem structure in the cache:
 
 mkdir path0
 date >path0/file0
 test_expect_success \
-    'git-update-cache --add path0/file0' \
-    'git-update-cache --add path0/file0'
+    'git-update-index --add path0/file0' \
+    'git-update-index --add path0/file0'
 test_expect_success \
     'writing tree out with git-write-tree' \
     'tree1=$(git-write-tree)'
 mkdir path1
 date >path1/file1
 test_expect_success \
-    'git-update-cache --add path1/file1' \
-    'git-update-cache --add path1/file1'
+    'git-update-index --add path1/file1' \
+    'git-update-index --add path1/file1'
 test_expect_success \
     'writing tree out with git-write-tree' \
     'tree2=$(git-write-tree)'
 rm -fr path1
 test_expect_success \
     'read previously written tree and checkout.' \
-    'git-read-tree -m $tree1 && git-checkout-cache -f -a'
+    'git-read-tree -m $tree1 && git-checkout-index -f -a'
 test_debug 'show_files $tree1'
 
 ln -s path0 path1
 test_expect_success \
-    'git-update-cache --add a symlink.' \
-    'git-update-cache --add path1'
+    'git-update-index --add a symlink.' \
+    'git-update-index --add path1'
 test_expect_success \
     'writing tree out with git-write-tree' \
     'tree3=$(git-write-tree)'
 
 test_expect_success \
     'read previously written tree and checkout.' \
-    'git-read-tree $tree2 && git-checkout-cache -f -a'
-test_debug show_files $tree2
+    'git-read-tree $tree2 && git-checkout-index -f -a'
+test_debug 'show_files $tree2'
 
 test_expect_success \
     'checking out conflicting path with -f' \