replace: forbid replacing an object with one of a different type
[gitweb.git] / builtin / clean.c
index 203e9b7ea01bb203db23d20f50b7b1f6fb6a073c..3c85e152e140741855590f422c599407b6d6ae55 100644 (file)
@@ -936,7 +936,7 @@ int cmd_clean(int argc, const char **argv, const char *prefix)
                struct dir_entry *ent = dir.entries[i];
                int len, pos;
                int matches = 0;
-               struct cache_entry *ce;
+               const struct cache_entry *ce;
                struct stat st;
                const char *rel;