diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index 7d8be24..9e3e3fa 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -453,6 +453,7 @@ defmodule KmxgitWeb.RepositoryController do
def line_numbers(string) do
string
|> String.split("\n")
+ |> tl()
|> Enum.with_index()
|> Enum.map(fn {_, i} -> "#{i + 1}" end)
end