Home

ugit @main - refs - log -
-
https://git.jolheiser.com/ugit.git
The code powering this h*ckin' site
tree log patch
fix arrow on diff page
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQIkixU1s6S8Iy/FGOyDhF21V/oKBwF8m/9V9XN0aCSWnv+GTfZgh5wwGjcsDgRqL3L hBA+2QVSh7P9mosbohVA0= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
3 weeks ago
1 changed files, 1 additions(+), 1 deletions(-)
M internal/html/repo_commit.gointernal/html/repo_commit.go
diff --git a/internal/html/repo_commit.go b/internal/html/repo_commit.go
index 2a909dbd19ec14c9e5c868431d68cb7e00552987..93bc55c555b6f51d29c1589ce9032ab10c1dd198 100644
--- a/internal/html/repo_commit.go
+++ b/internal/html/repo_commit.go
@@ -51,7 +51,7 @@ 					Text(" "),
 					If(file.From.Path != "",
 						A(Class("underline decoration-text/50 decoration-dashed hover:decoration-solid"), Href(fmt.Sprintf("/%s/tree/%s/%s", rcc.RepoHeaderComponentContext.Name, file.From.Commit, file.From.Path)), Text(file.From.Path)),
 					),
-					If(file.From.Path != file.To.Path, Text(" → ")),
+					If(file.From.Path != "" && file.To.Path != "", Text(" → ")),
 					If(file.To.Path != "",
 						A(Class("underline decoration-text/50 decoration-dashed hover:decoration-solid"), Href(fmt.Sprintf("/%s/tree/%s/%s", rcc.RepoHeaderComponentContext.Name, file.To.Commit, file.To.Path)), Text(file.To.Path)),
 					),