git-preview @ main

static git web frontend but with images and html previews + code truncation

git: use system's git upload-pack

This is an intermediate workaround for
https://github.com/go-git/go-git/issues/1062. This should also fix #33.
Sat, 13 Jul 2024
5 files changed, 178 insertions(+), 70 deletions(-)
M config.yaml

@@ -12,9 +12,9 @@ dirs:

templates: ./templates static: ./static meta: - title: git good - description: i think it's a skill issue + title: icy does git + description: come get your free software server: name: git.icyphox.sh - host: 127.0.0.1

… preview truncated

M flake.nix

@@ -38,7 +38,7 @@ };

docker = pkgs.dockerTools.buildLayeredImage { name = "sini:5000/legit"; tag = "latest"; - contents = [ files legit ]; + contents = [ files legit pkgs.git ]; config = { Entrypoint = [ "${legit}/bin/legit" ]; ExposedPorts = { "5555/tcp" = { }; };
A git/service/service.go

@@ -0,0 +1,121 @@

+package service + +import ( + "bytes" + "fmt" + "io" + "log" + "net/http" + "os/exec" + "strings"

… preview truncated

… and 2 more changed files not shown in this preview