repos / git-pr

a self-hosted git collaboration server
git clone https://github.com/picosh/git-pr.git

commit
02823e3
parent
d80260e
author
Eric Bower
date
2025-08-22 16:15:47 -0400 EDT
fix: runtime bugs while watching logs
2 files changed,  +5, -2
M web.go
M tmpl/components/range-diff.html
+4, -2
 1@@ -59,8 +59,10 @@
 2                   <div class="flex gap">
 3                     <div class="flex-1" style="width: 48%;">
 4                       <div>
 5-                        {{if .OldFile.OldName}}<code>{{.OldFile.OldName}}</code>{{end}}
 6-                        {{if .OldFile.NewName}}<code>{{.OldFile.NewName}}</code>{{end}}
 7+                        {{if .OldFile}}
 8+                          {{if .OldFile.OldName}}<code>{{.OldFile.OldName}}</code>{{end}}
 9+                          {{if .OldFile.NewName}}<code>{{.OldFile.NewName}}</code>{{end}}
10+                        {{end}}
11                       </div>
12                       <pre class="m-0">{{- range .Diff -}}
13                         {{- if eq .OuterType "delete" -}}
M web.go
+1, -0
1@@ -595,6 +595,7 @@ func createPrDetail(page string) http.HandlerFunc {
2 				}
3 			}
4 		case "ps":
5+			fallthrough
6 		case "rd":
7 			{
8 				ps, err = web.Pr.GetPatchsetByID(int64(prID))