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

git-diff: Doesn't detect subfolder as repos #21630

@utkarshgupta137

Description

@utkarshgupta137

Prerequisites

Description

If you add a project folder which is not a git repo but it contains folders which are git repos, git diff won't work.
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:

Changes should be detected by git-diff package

Actual behavior:

Changes are not detected

Reproduces how often:

100%

Versions

1.52 and 1.53-beta0

Additional Information

Fixed it here: #21631
Corresponding issue in tree-view: atom/tree-view#1366

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions