all repos

mugit @ 19c8a5c

๐Ÿฎ git server that your cow will love
1 files changed, 0 insertions(+), 33 deletions(-)
remove agents.md
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2026-02-17 23:13:44 +0200
Authored at: 2026-02-17 21:59:05 +0200
Change ID: vktptoyyzvukrrpxzkltswoywsoslnrp
Parent: b7356aa
D AGENTS.md
ยทยทยท
        1
        
        -# mugit

      
        2
        
        -

      
        3
        
        -This is a Go-based Git repository web interface. Use these guidelines when working on this codebase.

      
        4
        
        -

      
        5
        
        -

      
        6
        
        -## Project Structure

      
        7
        
        -

      
        8
        
        -```

      
        9
        
        -internal/

      
        10
        
        -โ”œโ”€โ”€ cli/             # CLI command handling

      
        11
        
        -โ”œโ”€โ”€ config/          # Configuration management (YAML)

      
        12
        
        -โ”œโ”€โ”€ git/             # Git operations

      
        13
        
        -โ”‚   โ””โ”€โ”€ gitservice/  # git upload-pack and git receive-pack implementation

      
        14
        
        -โ”œโ”€โ”€ handlers/        # Web interface and Git HTTP protocol handlers

      
        15
        
        -โ”œโ”€โ”€ humanize/        # Time formatting utilities

      
        16
        
        -โ”œโ”€โ”€ mirror/          # Repository mirroring worker

      
        17
        
        -โ”œโ”€โ”€ ssh/             # SSH Git server

      
        18
        
        -โ””โ”€โ”€ web/             # All things web

      
        19
        
        -```

      
        20
        
        -

      
        21
        
        -## Key Dependencies

      
        22
        
        -

      
        23
        
        -- `github.com/urfave/cli/v3` - CLI framework

      
        24
        
        -- `github.com/go-git/go-git/v5` - Pure Go Git library

      
        25
        
        -- `github.com/gliderlabs/ssh` - SSH server

      
        26
        
        -- `github.com/yuin/goldmark` - Markdown rendering

      
        27
        
        -- `github.com/cyphar/filepath-securejoin` - Secure path joining

      
        28
        
        -- `olexsmir.xyz/x/is` - Test assertions

      
        29
        
        -

      
        30
        
        -## Security

      
        31
        
        -

      
        32
        
        -- Always use `securejoin.SecureJoin()` when constructing filesystem paths from user input

      
        33
        
        -- Check `repo.IsPrivate()` before serving public repository content