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

Fix subfolder git detection #1367

Closed
wants to merge 1 commit into from
Closed

Fix subfolder git detection #1367

wants to merge 1 commit into from

Conversation

utkarshgupta137
Copy link

@utkarshgupta137 utkarshgupta137 commented Nov 1, 2020

Identify the Bug

Fixes #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

  • 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.

Doesn't detect subfolder as repos
1 participant