Skip to content

Commit 5c6cb98

Browse files
pcloudsgitster
authored andcommittedDec 1, 2014
ls-tree: disable negative pathspec because it's not supported
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1cf9952 commit 5c6cb98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎builtin/ls-tree.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ int cmd_ls_tree(int argc, const char **argv, const char *prefix)
174174
* cannot be lifted until it is converted to use
175175
* match_pathspec() or tree_entry_interesting()
176176
*/
177-
parse_pathspec(&pathspec, PATHSPEC_GLOB | PATHSPEC_ICASE,
177+
parse_pathspec(&pathspec, PATHSPEC_GLOB | PATHSPEC_ICASE |
178+
PATHSPEC_EXCLUDE,
178179
PATHSPEC_PREFER_CWD,
179180
prefix, argv + 1);
180181
for (i = 0; i < pathspec.nr; i++)

0 commit comments

Comments
 (0)