From c3e8866dcd4409147be0f45ead9def37f956cec3 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 28 Aug 2012 07:35:40 +0200 Subject: [PATCH] GetRemoteTags: Dot not include annotated tags twice 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 47717fb8a..7c30416ad 100644 --- a/src/Git/Git.cpp +++ b/src/Git/Git.cpp @@ -1375,8 +1375,9 @@ int CGit::GetRemoteTags(CString remote, STRING_VECTOR &list) while (pos >= 0) { CString one = out.Tokenize(_T("\n"), pos).Mid(51).Trim(); // sha1, tab + refs/tags/ + // dot not include annotated tags twice; this works, because an annotated tag appears twice (one normal tag and one with ^{} at the end) if (one.Find(_T("^{}")) >= 1) - one = one.Left(one.GetLength() - 3); + continue; if (!one.IsEmpty()) list.push_back(one); } -- 2.11.4.GIT