Merge branch 'jl/submodule-mv'
[gitweb.git] / pathspec.c
index d9f41432221ab5f886aaf0a6e306cb263892ab33..4b32cc32cb5b0be495ac941c5e96d8aee8fd8ff9 100644 (file)
@@ -32,7 +32,7 @@ void add_pathspec_matches_against_index(const struct pathspec *pathspec,
        if (!num_unmatched)
                return;
        for (i = 0; i < active_nr; i++) {
-               struct cache_entry *ce = active_cache[i];
+               const struct cache_entry *ce = active_cache[i];
                match_pathspec_depth(pathspec, ce->name, ce_namelen(ce), 0, seen);
        }
 }