Skip to content

Commit 90ab761

Browse files
committed
Tags trimming bug fixed
1 parent fc1f345 commit 90ab761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/GitLogWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ List<LogLine> ParseGitLogLines(IEnumerable<string> rawLines)
128128
var groups = Regex.Match(rawLine, @"#([0-9a-f]+).*?- (.*?) \((.*?)\) \((.*?)\) <b>\s?\(?(.*?)\)?</b> (.*)")?.Groups;
129129
var references = groups[5].Value.Split(',', StringSplitOptions.RemoveEmptyEntries).Where(x => x != "refs/stash");
130130
var branches = references.Where(x => !x.StartsWith("tag:")).ToArray();
131-
var tags = references.Where(x => x.StartsWith("tag:")).Select(x => x[5..^1]).ToArray();
131+
var tags = references.Where(x => x.StartsWith("tag:")).Select(x => x[5..]).ToArray();
132132
logLines.Add(new LogLine(rawLine, Hash: groups[1].Value, Comment: groups[6].Value, Author: groups[2].Value, Email: groups[3].Value, Date: groups[4].Value, branches, tags));
133133
}
134134
return logLines;

0 commit comments

Comments
 (0)