Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Fix subfolder git detection #560

Closed
wants to merge 1 commit into from
Closed

Fix subfolder git detection #560

wants to merge 1 commit into from

Conversation

utkarshgupta137
Copy link

Identify the Bug

Same as atom/tree-view#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 maybe a little lag when loading file which already has changes.

Verification Process

TODO

Release Notes

  • Fixed subfolders of project folders not getting detected as git repositories.

@utkarshgupta137
Copy link
Author

TODO: Add tests.

@utkarshgupta137 utkarshgupta137 closed this by deleting the head repository Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant