-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[xharness] Improve listing files in the repository. (#18183)
When cloning projects, we need to list all the files in the original project directory and manually include some of them in the cloned project (because in .NET some files from the project directory are included automatically, and if we clone a project and put the cloned project in a different directory, those files won't be picked up automatically by the build anymore). The previous code to list the files in the project directory would run 'git ls-files' for each project directory. This is rather slow, since it happens quite a few times. Instead modify the logic to run 'git ls-files' once for the entire tests/ directory, store the result, and then when we need to list files in a particular project directory, just look in that stored list for the applicable files. This is much, much faster.
- Loading branch information
1 parent
a4b5edd
commit 98cc281
Showing
2 changed files
with
40 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
Sorry, something went wrong.