From 2fa80ded7ce483a7a85be90d48da06aa43a96c42 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 28 Aug 2012 07:30:23 +0200 Subject: [PATCH] GetRemoteTags: Do not insert an empty tag 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 9bf1123bf..47717fb8a 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -1377,7 +1377,8 @@ int CGit::GetRemoteTags(CString remote, STRING_VECTOR &list) CString one = out.Tokenize(_T("\n"), pos).Mid(51).Trim(); // sha1, tab + refs/tags/ if (one.Find(_T("^{}")) >= 1) one = one.Left(one.GetLength() - 3); - list.push_back(one); + if (!one.IsEmpty()) + list.push_back(one); } std::sort(list.begin(), list.end(), LogicalComparePredicate); return 0; -- 2.11.4.GIT