From 202b825d65ad985978f905923838137950660c74 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 21 Jan 2012 17:00:59 +0100 Subject: [PATCH] TGitCache: correctly show folder status for new/empty repositories Signed-off-by: Sven Strickroth --- src/TGitCache/CachedDirectory.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TGitCache/CachedDirectory.cpp b/src/TGitCache/CachedDirectory.cpp index 2d612e587..f8fd79f38 100644 --- a/src/TGitCache/CachedDirectory.cpp +++ b/src/TGitCache/CachedDirectory.cpp @@ -431,6 +431,9 @@ int CCachedDirectory::EnumFiles(CTGitPath *path , bool IsFull) pStatus->EnumDirStatus(sProjectRoot, sSubPath, &status, IsFull, false, true, GetStatusCallback,this); } + if (this->m_directoryPath.HasAdminDir()) + m_ownStatus = git_wc_status_normal; + m_mostImportantFileStatus = GitStatus::GetMoreImportant(m_mostImportantFileStatus, status); return 0; -- 2.11.4.GIT