Skip to content
Snippets Groups Projects
Commit e4ddb057 authored by Andy Spencer's avatar Andy Spencer Committed by Junio C Hamano
Browse files

tree_entry_interesting: match against all pathspecs


The current basedir compare aborts early in order to avoid futile
recursive searches. However, a match may still be found by another
pathspec. This can cause an error while checking out files from a branch
when using multiple pathspecs:

$ git checkout master -- 'a/*.txt' 'b/*.txt'
error: pathspec 'a/*.txt' did not match any file(s) known to git.

Signed-off-by: default avatarAndy Spencer <andy753421@gmail.com>
Acked-by: default avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 2f93541d
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment