icyphox / legit

web frontend for git
https://git.icyphox.sh
MIT License
376 stars 25 forks source link

New bare repo doesn't appear in listing #4

Closed yonas closed 1 year ago

yonas commented 1 year ago

I created a bare repo as mentioned in #3, but it doesn't show up under http://git.lan:5555/

icyphox commented 1 year ago

Are you able to provide some more info? Do you see anything in the logs? What does your config look like? And your directory structure?

It’s hard to say otherwise.

yonas commented 1 year ago

config.yaml

repo:
  scanPath: /var/www/git
  readme:
    - readme
    - README
    - readme.md
    - README.md
  mainBranch:
    - master
    - main
dirs:
  templates: ./templates
  static: ./static
meta:
  title: git good
  description: i think it's a skill issue
server:
  name: git.lan:5555
  host: 0.0.0.0
  port: 5555

Directories

/var/www/git/micro/HEAD
/var/www/git/micro/branches/
/var/www/git/micro/config
/var/www/git/micro/description
/var/www/git/micro/hooks/
/var/www/git/micro/hooks/applypatch-msg.sample
/var/www/git/micro/hooks/commit-msg.sample
/var/www/git/micro/hooks/fsmonitor-watchman.sample
/var/www/git/micro/hooks/post-update.sample
/var/www/git/micro/hooks/pre-applypatch.sample
/var/www/git/micro/hooks/pre-commit.sample
/var/www/git/micro/hooks/pre-merge-commit.sample
/var/www/git/micro/hooks/pre-push.sample
/var/www/git/micro/hooks/pre-rebase.sample
/var/www/git/micro/hooks/pre-receive.sample
/var/www/git/micro/hooks/prepare-commit-msg.sample
/var/www/git/micro/hooks/push-to-checkout.sample
/var/www/git/micro/hooks/update.sample
/var/www/git/micro/info/
/var/www/git/micro/info/exclude
/var/www/git/micro/objects/
/var/www/git/micro/objects/info/
/var/www/git/micro/objects/pack/
/var/www/git/micro/refs/
/var/www/git/micro/refs/heads/
/var/www/git/micro/refs/tags/

Logs

2022/12/19 13:03:48 starting server on 0.0.0.0:5555

icyphox commented 1 year ago

I tried this with the repository you linked in #3 (https://github.com/zyedidia/micro), and wasn't able to reproduce it—it shows up just fine. I'm going to guess it's an issue with your setup.

Further, that log message doesn't look right. It should say "starting server on ...". I don't know what's going on here.

icyphox commented 1 year ago

Closing as this seems like user/setup error and lacking enough info. Feel free to reopen if you have anything more to add.