X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=apply.c;h=ee59be643eb5f95ed021921b1b76d37135cab5ac;hb=c7c81b3a51de2778535c8bb18d42a4bb7dfd57bc;hp=7c1a8411f21ee42d095e6c5a515987ef2a6f779a;hpb=6c5f9baa3bc0d63e141e0afc23110205379905a4;p=git.git diff --git a/apply.c b/apply.c index 7c1a8411..ee59be64 100644 --- a/apply.c +++ b/apply.c @@ -1377,7 +1377,7 @@ static struct excludes { static int use_patch(struct patch *p) { - const char *pathname = p->new_name ? : p->old_name; + const char *pathname = p->new_name ? p->new_name : p->old_name; struct excludes *x = excludes; while (x) { if (fnmatch(x->path, pathname, 0) == 0)