fsck-cache: walk the 'refs' directory if the user doesn't give any
[gitweb.git] / checkout-cache.c
index 18729374fc5da8a6c7b568fe571bac58e705545d..462aea55aff1885cac488e5710abeef6834c25c7 100644 (file)
@@ -167,7 +167,7 @@ static int checkout_entry(struct cache_entry *ce, const char *base_dir)
        strcpy(path + len, ce->name);
 
        if (!lstat(path, &st)) {
-               unsigned changed = cache_match_stat(ce, &st);
+               unsigned changed = ce_match_stat(ce, &st);
                if (!changed)
                        return 0;
                if (!force) {