diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl
index 8cd6adb04d8e2..8f3260ba50e7c 100644
--- a/templates/repo/graph/commits.tmpl
+++ b/templates/repo/graph/commits.tmpl
@@ -68,7 +68,7 @@
{{$userName = $commit.User.FullName}}
{{end}}
{{avatar $commit.User}}
- {{$userName}}
+ {{$userName}}
{{else}}
{{avatarByEmail $commit.Commit.Author.Email $userName}}
{{$userName}}