diff options
Diffstat (limited to 'third_party/git/builtin/show-branch.c')
-rw-r--r-- | third_party/git/builtin/show-branch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/git/builtin/show-branch.c b/third_party/git/builtin/show-branch.c index 8c90cbb18f07..35d7f51c236d 100644 --- a/third_party/git/builtin/show-branch.c +++ b/third_party/git/builtin/show-branch.c @@ -536,7 +536,7 @@ static void append_one_rev(const char *av) append_ref(av, &revkey, 0); return; } - if (strpbrk(av, "*?[")) { + if (strchr(av, '*') || strchr(av, '?') || strchr(av, '[')) { /* glob style match */ int saved_matches = ref_name_cnt; |