When an existing vendor has already been fetched at a commit, adding new patterns via git vendor track or editing .gitvendors doesn't re-extract files matching the new patterns from that already-fetched commit.
To work around this, users must remove the vendor and re-add it with all desired patterns.
Steps to reproduce:
- Add a vendor with one pattern:
git vendor add <url> -p 'file1:.path/'
- Try to add another pattern:
git vendor track <name> 'file2:.path/'
- Run
git vendor pull <name>
- file2 is not extracted (even though file2 exists in the upstream commit)
Expected: New patterns should be applied to already-fetched commits, extracting matching files.
When an existing vendor has already been fetched at a commit, adding new patterns via git vendor track or editing .gitvendors doesn't re-extract files matching the new patterns from that already-fetched commit.
To work around this, users must remove the vendor and re-add it with all desired patterns.
Steps to reproduce:
git vendor add <url> -p 'file1:.path/'git vendor track <name> 'file2:.path/'git vendor pull <name>Expected: New patterns should be applied to already-fetched commits, extracting matching files.