diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-02-15 03:01:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-02-20 23:15:46 +0100 |
commit | eb07894fe036566acccb71420ab79ccb9c9e2d66 (patch) | |
tree | 74709f072ea129623d3771433080de01d5010026 /builtin/ls-remote.c | |
parent | Git 1.9.0 (diff) | |
download | git-eb07894fe036566acccb71420ab79ccb9c9e2d66.tar.xz git-eb07894fe036566acccb71420ab79ccb9c9e2d66.zip |
use wildmatch() directly without fnmatch() wrapper
Make it clear that we don't use fnmatch() anymore.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-remote.c')
-rw-r--r-- | builtin/ls-remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/ls-remote.c b/builtin/ls-remote.c index 39e5144b9e..3e9eefb091 100644 --- a/builtin/ls-remote.c +++ b/builtin/ls-remote.c @@ -22,7 +22,7 @@ static int tail_match(const char **pattern, const char *path) if (snprintf(pathbuf, sizeof(pathbuf), "/%s", path) > sizeof(pathbuf)) return error("insanely long ref %.*s...", 20, path); while ((p = *(pattern++)) != NULL) { - if (!fnmatch(p, pathbuf, 0)) + if (!wildmatch(p, pathbuf, 0, NULL)) return 1; } return 0; |