diff options
| author | Junio C Hamano <gitster@pobox.com> | 2014-03-14 14:25:31 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2014-03-14 14:25:31 -0700 |
| commit | 650c90a18506ce05e2be349d83fe1cef3dc7f8cb (patch) | |
| tree | 6852107d8a2a0d30ea2cfac400fc33bce72fe7bc /builtin/ls-remote.c | |
| parent | Merge branch 'ak/gitweb-fit-image' (diff) | |
| parent | actually remove compat fnmatch source code (diff) | |
| download | git-650c90a18506ce05e2be349d83fe1cef3dc7f8cb.tar.gz git-650c90a18506ce05e2be349d83fe1cef3dc7f8cb.zip | |
Merge branch 'nd/no-more-fnmatch'
We started using wildmatch() in place of fnmatch(3); complete the
process and stop using fnmatch(3).
* nd/no-more-fnmatch:
actually remove compat fnmatch source code
stop using fnmatch (either native or compat)
Revert "test-wildmatch: add "perf" command to compare wildmatch and fnmatch"
use wildmatch() directly without fnmatch() wrapper
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; |
