By using atom.project.repositoryForPath function instead of matching the path with added directories, subfolders will get identified.
Made necessary changes to referenced places to handle the async nature of the atom.project.repositoryForPath.
Alternate Designs
None.
Possible Drawbacks
Since atom.project.repositoryForPath is an async function, there may be a little lag when loading files with existing changes.
Verification Process
TODO
Release Notes
Fixed subfolders of project folders not getting detected as git repositories.
Identify the Bug
Fixes https://github.com/atom/tree-view/issues/1366.
Description of the Change
By using atom.project.repositoryForPath function instead of matching the path with added directories, subfolders will get identified. Made necessary changes to referenced places to handle the async nature of the atom.project.repositoryForPath.
Alternate Designs
None.
Possible Drawbacks
Since atom.project.repositoryForPath is an async function, there may be a little lag when loading files with existing changes.
Verification Process
TODO
Release Notes