Skip to content

git status does not report untracked files that are more than one folder deep #358

@wilbaker

Description

@wilbaker

This is a new break that is likely related to the changes to cleanup ModifiedPaths.dat.

If a new file is created several folders deep, git status will not report it.

Last released version

M:\>gvfs clone https://gvfs.visualstudio.com/ci/_git/ForTests
M:\>cd ForTests\src
M:\ForTests\src>mkdir foo
M:\ForTests\src>mkdir foo\bar
M:\ForTests\src>echo test > foo\bar\test
M:\ForTests\src>git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        foo/

nothing added to commit but untracked files present (use "git add" to track)

Latest master: Untracked file is not reported

M:\>gvfs clone https://gvfs.visualstudio.com/ci/_git/ForTests ForTestsMaster
M:\>cd ForTestsMaster
M:\ForTestsMaster>cd src
M:\ForTestsMaster\src>mkdir foo
M:\ForTestsMaster\src>mkdir foo\bar
M:\ForTestsMaster\src>echo test > foo\bar\test
M:\ForTestsMaster\src>git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working tree clean

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions