Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create ResourceTree from Git #261

Open
Kaliumhexacyanoferrat opened this issue Dec 9, 2021 · 0 comments
Open

Create ResourceTree from Git #261

Kaliumhexacyanoferrat opened this issue Dec 9, 2021 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

As a developer, I would like to access resources hosted on a git repository within my project, so that I can serve content from there.

Example

var tree = ResourceTree.FromGit("https://my.repo", "v1.0.0")
                       .Refresh(PullPolicy.Always);

Host.Create()
    .Handler(DirectoryListing.From(tree))
    .Run();

Acceptance criteria

  • The functionality is implemented in a new "GenHTTP.Modules.Git" module
  • Repositories can be accessed using SSH or HTTPS
  • Secured repositories can be specified
  • The handler performs the initial checkout on PrepareAsync
  • The repository is checked out into a local folder
  • The repository is checked out shallow, if possible
  • A checkout revision (hash, tag, branch) can be specified
  • The local state is discarded on disposal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant