Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The check for unit tests looks for directories to exclude, and removes the first slash. The purpose of this removal is to trim the slash at the end of a path, as output by git ls-files, because paths with a trailing slash don't match when used in find's -path check. The current code works as long as the directories being removed are at the top level; if not, a slash in the middle is trimmed, and the path would fail anyway (and find warns about this). Trimming the last slash in all cases avoids the various issues here. Signed-off-by: Stephen Kitt <[email protected]>
- Loading branch information