../lilgit
Minimal, filesystem-based server for git repos (https://git.awl.red)
Clone with
git clone git://git.awl.red/neallred/lilgit

lilgit📎

Simple, single binary databaseless git server that relies completely on (bare) git repositories. No javascript required for the web viewer.

Building📎

As an example of building on an older arm target:

cross build --target armv7-unknown-linux-musleabihf --release

And if you run into issues with GLIBC errors, try cargo clean and rerun (see https://github.com/cross-rs/cross/issues/724)

Tests📎

  • Create a test directory with valid repos for a single user. e.g.
$HOME/
  lilgit_test/
    neallred/
      lilgit/
        .git
        README.md
        src/
        ...
  • Set the LILGIT_TEST_DIR env var to the path of that directory

  • Set the LILGIT_TEST_USER env var to matching single user

  • Run tests with cargo test

.gitignore 1 year ago
Cargo.lock 1 year ago
Cargo.toml 1 year ago
LICENSE 1 year ago
README.md 1 year ago
build.rs 1 year ago
src
code_count.rs 1 year ago
file.rs 1 year ago
lib.rs 1 year ago
listing.rs 1 year ago
main.rs 1 year ago
static.rs 1 year ago
user.rs 1 year ago
templates
base.html 1 year ago
file.html 1 year ago
index.html 1 year ago
not_found.html 1 year ago
repo_folder.html 1 year ago
repo_index.html 1 year ago
repo_tree.html 1 year ago
style.css 1 year ago
swatch.html 1 year ago
user_repos.html 1 year ago