mirror of
https://github.com/rust-lang/cargo
synced 2024-10-14 19:52:45 +00:00
Fix #4135: if theres include = [...]
, then dont prepopulate filelist via git
This commit is contained in:
parent
1c5885240c
commit
6eaa964d3e
|
@ -114,8 +114,11 @@ impl<'cfg> PathSource<'cfg> {
|
|||
}
|
||||
};
|
||||
|
||||
if let Some(result) = self.discover_git_and_list_files(pkg, root, &mut filter) {
|
||||
return result;
|
||||
// attempt git-prepopulate only if no `include` (rust-lang/cargo#4135)
|
||||
if include.is_empty() {
|
||||
if let Some(result) = self.discover_git_and_list_files(pkg, root, &mut filter) {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
self.list_files_walk(pkg, &mut filter)
|
||||
|
|
Loading…
Reference in a new issue