[PATCH] Rename and extend read_tree_with_tree_or_commit_sha1
[git.git] / rev-tree.c
index ebeceb0..03c900f 100644 (file)
@@ -89,8 +89,7 @@ int main(int argc, char **argv)
                char *arg = argv[i];
 
                if (!strcmp(arg, "--cache")) {
-                       read_cache_file(argv[2]);
-                       i++;
+                       read_cache_file(argv[++i]);
                        continue;
                }