From b27a10f320c96862afe5637ff393a6c7a73791cd Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 28 Aug 2012 18:43:46 +0200 Subject: [PATCH] GetTagList: Do not include an empty string in the list Signed-off-by: Sven Strickroth --- src/Git/Git.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Git/Git.cpp b/src/Git/Git.cpp index dec2c521a..6031e32bc 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -1142,7 +1142,8 @@ int CGit::GetTagList(STRING_VECTOR &list) while( pos>=0 ) { one=output.Tokenize(_T("\n"),pos); - list.push_back(one); + if (!one.IsEmpty()) + list.push_back(one); } std::sort(list.begin(), list.end(), LogicalComparePredicate); } -- 2.11.4.GIT