atom/tree-view

Doesn't detect subfolder as repos

Opened this issue · 0 comments

Prerequisites

Description

If you add a project folder which is not a git repo but it contains folders which are git repos, tree view doesn't detect it as a git repo.
You can get it to work by adding the git repos as project folders, but it should be above the main project folder.

Steps to Reproduce

  1. Create the following tree:
    |-- mainFolderWithoutGit
    .....|-- someFolderWithGit
    ..........|-- .git
  2. Add mainFolderWithoutGit as a project.
  3. Make any changes to any file in someFolderWithGit

Expected behavior:

someFolderWithGit should be detected as a git repo

Actual behavior:

someFolderWithGit is not detected as a git repo

Reproduces how often:

100%

Versions

1.52 and 1.53-beta0

Additional Information

Fixed it here:
Corresponding issue in atom/git-diff: atom/atom#21630