Skip to content

Commit 10f0f90

Browse files
committed
chore: don't render binaries as diffs
1 parent 941acdf commit 10f0f90

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ WORKDIR /app
4545
COPY --from=builder-web /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
4646
COPY --from=builder-web /go/bin/git-web ./git-web
4747

48-
CMD ["/app/web"]
48+
CMD ["/app/git-web"]
4949

5050
FROM scratch as release-ssh
5151

tmpl/patchset.html

+8
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ <h3 class="text-lg text-transform-none mono"><a href="#{{$patch.Url}}">{{$patch.
6363
<code class="pill-admin">-{{.Dels}}</code>
6464
</div>
6565
</summary>
66+
{{if .IsBinary}}
67+
<div><pre>Binaries are not rendered as diffs.</pre></div>
68+
{{else}}
6669
<div>{{.DiffText}}</div>
70+
{{end}}
6771
</details>
6872
{{else}}
6973
<details class="details-min" open="true" id="patch-{{$patch.ID}}-{{.OldName}}">
@@ -75,7 +79,11 @@ <h3 class="text-lg text-transform-none mono"><a href="#{{$patch.Url}}">{{$patch.
7579
<code class="pill-admin">-{{.Dels}}</code>
7680
</div>
7781
</summary>
82+
{{if .IsBinary}}
83+
<div><pre>Binaries are not rendered as diffs.</pre></div>
84+
{{else}}
7885
<div>{{.DiffText}}</div>
86+
{{end}}
7987
</details>
8088
{{end}}
8189
{{end}}

0 commit comments

Comments
 (0)