Skip to content

LFS_CONTENT_PATH defaults to '' #2508

Closed
@chorvus

Description

@chorvus
  • Gitea version (or commit ref): 1.2.0+rc2
  • Git version: not relevant
  • Operating system: Win 10 x64
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I was trying to test out the LFS support, I flipped LFS_START_SERVER to true and I got this:

2017/09/14 18:50:16 [...s/setting/setting.go:735 NewContext()] [E] Failed to create '': mkdir : The system cannot find the path specified.

Manually adding LFS_CONTENT_PATH = data/lfs to my app.ini makes it run as intended, updating the conf file with LFS_JWT_SECRET and booting up without issues.

It should either default to data/lfs (updating the app.ini) or quit with a descriptive error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions