X-Git-Url: http://git.scripts.mit.edu/?a=blobdiff_plain;f=tree-diff.c;h=456660c7a29ef75030141721205f34134daea51c;hb=8cd4249c4cdb19fce489a3f6ba31f499f4331341;hp=ccf9d7c8fd41c00f13136ef99d24180b36a098c1;hpb=2125261b631c429175821299ece33449dbd3ab96;p=git.git diff --git a/tree-diff.c b/tree-diff.c index ccf9d7c8fd..456660c7a2 100644 --- a/tree-diff.c +++ b/tree-diff.c @@ -254,7 +254,9 @@ static void try_to_follow_renames(struct tree_desc *t1, struct tree_desc *t2, co path[0] = p->one->path; path[1] = NULL; free_pathspec(&opt->pathspec); - parse_pathspec(&opt->pathspec, PATHSPEC_ALL_MAGIC, 0, "", path); + parse_pathspec(&opt->pathspec, + PATHSPEC_ALL_MAGIC & ~PATHSPEC_LITERAL, + PATHSPEC_LITERAL_PATH, "", path); /* * The caller expects us to return a set of vanilla