X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=diffcore-pathspec.c;h=68fe009132d1e900138a9d61bb7c658e23d9b76d;hb=ee72aeaf009417156a3599b0eb69da3f7023ca07;hp=a48acbc965d5187fc9abb3ffab4fc9e60d4feac3;hpb=80bd6f3064a6009cd18a4dab9ce6d29681cec4af;p=git.git diff --git a/diffcore-pathspec.c b/diffcore-pathspec.c index a48acbc9..68fe0091 100644 --- a/diffcore-pathspec.c +++ b/diffcore-pathspec.c @@ -29,6 +29,8 @@ static int matches_pathspec(const char *name, struct path_spec *s, int cnt) name[len] == 0 || name[len] == '/') return 1; + if (!len) + return 1; } return 0; }