Merge branch 'mr/worktree-list'
[gitweb.git] / builtin / for-each-ref.c
index 40f343b6a36fc76271e53d842b92f8ab4c161d38..4e9f6c29bf1e0c1cc7b44548f49077c2e4a81ec8 100644 (file)
@@ -68,6 +68,7 @@ int cmd_for_each_ref(int argc, const char **argv, const char *prefix)
        git_config(git_default_config, NULL);
 
        filter.name_patterns = argv;
+       filter.match_as_path = 1;
        filter_refs(&array, &filter, FILTER_REFS_ALL | FILTER_REFS_INCLUDE_BROKEN);
        ref_array_sort(sorting, &array);