Commit f259df57cf
f259df57cf7008207bdef2e1c12a0b2e532ea6e9
parent: 30ef5fd837
Verified · cmc ci/build: success
cmc <hello@cleberg.net> · 2026-08-30T03:27:41Z
gofmt
Whitespace and import ordering only; no behaviour change.
cmd/gitbayd/main.go
+4 −5
| @@ -18,15 +18,15 @@ import ( |
| 18 | 18 | "golang.org/x/crypto/acme/autocert" |
| 19 | 19 | "golang.org/x/crypto/ssh" |
| 20 | 20 | |
| 21 | | "gitbay.org/gitbay/internal/config" |
| 22 | 21 | "gitbay.org/gitbay/internal/ci" |
| 22 | "gitbay.org/gitbay/internal/config" |
| 23 | 23 | "gitbay.org/gitbay/internal/control" |
| 24 | | "gitbay.org/gitbay/internal/mail" |
| 25 | | "gitbay.org/gitbay/internal/mirror" |
| 26 | | "gitbay.org/gitbay/internal/notify" |
| 27 | 24 | "gitbay.org/gitbay/internal/gitd" |
| 28 | 25 | "gitbay.org/gitbay/internal/hookd" |
| 29 | 26 | "gitbay.org/gitbay/internal/httpd" |
| 27 | "gitbay.org/gitbay/internal/mail" |
| 28 | "gitbay.org/gitbay/internal/mirror" |
| 29 | "gitbay.org/gitbay/internal/notify" |
| 30 | 30 | "gitbay.org/gitbay/internal/policy" |
| 31 | 31 | "gitbay.org/gitbay/internal/sshd" |
| 32 | 32 | "gitbay.org/gitbay/internal/store" |
| @@ -179,7 +179,6 @@ func serveCmd() *cobra.Command { |
| 179 | 179 | slog.Info("ssh handled by host sshd (ssh.mode = system)") |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | | |
| 183 | 182 | web := httpd.New(cfg, st) |
| 184 | 183 | hs := &http.Server{Addr: cfg.HTTP.Addr, Handler: web.Handler()} |
| 185 | 184 | go func() { |
e2e/design_test.go
+8 −8
| @@ -43,15 +43,15 @@ func TestReadmeRelativeLinks(t *testing.T) { |
| 43 | 43 | t.Fatalf("tree: %d", status) |
| 44 | 44 | } |
| 45 | 45 | for _, want := range []string{ |
| 46 | | `href="/alice/site/blob/main/docs/guide.md"`, // relative link |
| 47 | | `href="/alice/site/blob/main/docs/paper.org"`, // .html mapped to .org source |
| 48 | | `src="/alice/site/raw/main/img/logo.png"`, // relative image via raw |
| 49 | | `src="https://example.org/pic.png"`, // remote image untouched |
| 50 | | `href="https://example.org/x"`, // absolute untouched |
| 51 | | "<table>", "<td>verbose</td>", // GFM table renders |
| 52 | | `<span class="kd">func</span>`, // fenced code highlighted via classes |
| 46 | `href="/alice/site/blob/main/docs/guide.md"`, // relative link |
| 47 | `href="/alice/site/blob/main/docs/paper.org"`, // .html mapped to .org source |
| 48 | `src="/alice/site/raw/main/img/logo.png"`, // relative image via raw |
| 49 | `src="https://example.org/pic.png"`, // remote image untouched |
| 50 | `href="https://example.org/x"`, // absolute untouched |
| 51 | "<table>", "<td>verbose</td>", // GFM table renders |
| 52 | `<span class="kd">func</span>`, // fenced code highlighted via classes |
| 53 | 53 | `href="/alice/site/blob/main/README.md">README.md</a>`, // clickable card header |
| 54 | | `<th scope="col">name</th>`, // file table column headers |
| 54 | `<th scope="col">name</th>`, // file table column headers |
| 55 | 55 | } { |
| 56 | 56 | if !strings.Contains(body, want) { |
| 57 | 57 | t.Errorf("missing %q", want) |
e2e/ssh_test.go
+1 −1
| @@ -54,7 +54,7 @@ func startInstance(t *testing.T) *instance { |
| 54 | 54 | func startInstanceWith(t *testing.T, extra string) *instance { |
| 55 | 55 | t.Helper() |
| 56 | 56 | inst := &instance{ |
| 57 | | gitbayd: buildGitbayd(t), |
| 57 | gitbayd: buildGitbayd(t), |
| 58 | 58 | root: t.TempDir(), |
| 59 | 59 | port: freePort(t), |
| 60 | 60 | httpPort: freePort(t), |