From b76cd03132c42c4fb7a61172381d6f2e913dcabf Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 29 Dec 2012 05:28:24 +0100 Subject: [PATCH] TGitBlame: Fixed possible crash if started w/ CWD pointing to no repo Signed-off-by: Sven Strickroth --- src/TortoiseProc/GitLogListBase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TortoiseProc/GitLogListBase.cpp b/src/TortoiseProc/GitLogListBase.cpp index 2a35cadf3..eaef03836 100644 --- a/src/TortoiseProc/GitLogListBase.cpp +++ b/src/TortoiseProc/GitLogListBase.cpp @@ -356,7 +356,9 @@ void CGitLogListBase::InsertGitColumn() exStyle |= LVS_EX_FULLROWSELECT; SetExtendedStyle(exStyle); - UpdateProjectProperties(); + // only load properties if we have a repository + if (GitAdminDir().HasAdminDir(g_Git.m_CurrentDir) || GitAdminDir().IsBareRepo(g_Git.m_CurrentDir)) + UpdateProjectProperties(); static UINT normal[] = { -- 2.11.4.GIT