diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-06-10 21:04:12 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-06-10 21:04:59 +0400 |
commit | 4497fd45b909d15a0ef14309ab248c6f8ea3163c (patch) | |
tree | c65f374df7a747723b45dfcff83090d791283fea /main/src/addins/VersionControl/MonoDevelop.VersionControl.Git | |
parent | b0c931e8e39ac52ec0108d5ddd3d4983e2a13672 (diff) |
Fix bug 693455 - Git Version Control Isn't Picking up on NEW files
This was happening only when adding files to a folder which didn't
previously have controlled files.
In RepositoryStatus, when recursing into a subdirectory, do it even if
there is no index information about it, since uncontrolled files still
have to be reported.
Diffstat (limited to 'main/src/addins/VersionControl/MonoDevelop.VersionControl.Git')
-rw-r--r-- | main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/RepositoryStatus.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/RepositoryStatus.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/RepositoryStatus.cs index b1aa6a2fb8..32beb5b029 100644 --- a/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/RepositoryStatus.cs +++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/RepositoryStatus.cs @@ -187,8 +187,7 @@ namespace MonoDevelop.VersionControl.Git NGit.FileMode fileModeTree = treeWalk.GetFileMode(0); if (treeWalk.IsSubtree) { - if (dirCacheIterator != null || treeIterator != null) - treeWalk.EnterSubtree (); + treeWalk.EnterSubtree (); continue; } |