Merge branch 'js/add-i-mingw'
[gitweb.git] / tree-diff.c
index 21a50d8ed3bc6fcfd92e4e00a23a80a20f869f9f..ccf9d7c8fd41c00f13136ef99d24180b36a098c1 100644 (file)
@@ -202,7 +202,7 @@ static void try_to_follow_renames(struct tree_desc *t1, struct tree_desc *t2, co
         * path. Magic that matches more than one path is not
         * supported.
         */
-       GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP);
+       GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);
 #if 0
        /*
         * We should reject wildcards as well. Unfortunately we