From 158de711d18ab4df765396df9cb479cc5ec9d585 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Mon, 17 Nov 2014 11:26:51 +0100 Subject: [PATCH] Do not report folder status for files Signed-off-by: Sven Strickroth --- src/TGitCache/CachedDirectory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TGitCache/CachedDirectory.cpp b/src/TGitCache/CachedDirectory.cpp index 69e792871..9588b09a8 100644 --- a/src/TGitCache/CachedDirectory.cpp +++ b/src/TGitCache/CachedDirectory.cpp @@ -338,6 +338,8 @@ CStatusCacheEntry CCachedDirectory::GetStatusFromGit(const CTGitPath &path, CStr { EnumFiles(path, TRUE); UpdateCurrentStatus(); + if (!path.IsDirectory()) + return GetCacheStatusForMember(path); return CStatusCacheEntry(m_ownStatus); } -- 2.11.4.GIT