use local cloning if insteadOf makes a local URL
[gitweb.git] / cache.h
diff --git a/cache.h b/cache.h
index 6db3ae1b4343181b86e653e252d65a9435a4b654..92fc9f1121776fbebf180b5e9d958982e8a98014 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1115,7 +1115,7 @@ struct cache_def {
        int prefix_len_stat_func;
 };
 #define CACHE_DEF_INIT { STRBUF_INIT, 0, 0, 0 }
-static inline void cache_def_free(struct cache_def *cache)
+static inline void cache_def_clear(struct cache_def *cache)
 {
        strbuf_release(&cache->path);
 }