Replace percentage in import name with underscore

This commit is contained in:
Mustafa Gezen 2021-04-26 04:02:07 +02:00
parent d272dd817f
commit c84bb1d953

View File

@ -312,5 +312,5 @@ func (g *GitMode) ImportName(_ *data.ProcessData, md *data.ModeData) string {
return match[3]
}
return strings.TrimPrefix(md.TagBranch, "refs/heads/")
return strings.Replace(strings.TrimPrefix(md.TagBranch, "refs/heads/"), "%", "_", -1)
}