Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Conversation

@M3TIOR
Copy link
Contributor

@M3TIOR M3TIOR commented Jan 3, 2022

Identify the Bug

Fixes #21630
Fixes atom/github#1149
Fixes atom/github#1835

Linked PRs:
tree-view: atom/tree-view#1367
tabs: atom/tabs#560
status-bar: aminya/status-bar#4
atom: #21631
minimap-git-diff: atom-minimap/minimap-git-diff#31
file-icons: file-icons/atom-fs#9
linter: steelbrain/linter#1715

Description of the Change

By using atom.project.repositoryForPath function instead of matching the path with added directories, subfolders will get identified.

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

Create two duplicate repositories, one within the other. If git-diff shows file changes on any of the nested files, then it cannot be targeting the correct repository and must be targeting an ancestor.

Release Notes

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

@icecream17
Copy link
Contributor

icecream17 commented Jan 3, 2022

same as #21631 ?

@M3TIOR
Copy link
Contributor Author

M3TIOR commented Jan 3, 2022

Yeah, I coudn't figure out what was breaking the build when I tried to help implement these changes in the other PR. Lucky for me completely starting over from scratch fixed everything. I included Utkarsh Gupta as a contributor on the fix commit via co-contributors. This also removes the middleman between me and fixing this problem lol. Utkarsh seems distracted and I'd rather not bother them if I don't have to.

I'm gonna go ahead and fix that linter error so we can get this merged finally.

Copy link
Contributor

@sadick254 sadick254 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@M3TIOR Thanks for your contribution. This looks good. 👍

@sadick254 sadick254 merged commit 3ddbda0 into atom:master Jan 10, 2022
@ian-bertolacci
Copy link

🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

5 participants