Skip to content

GIT server #34

Open
Open

Description

@mattapperson

Basic use case for MVP GIT server:

  • User wants to host files using git, controlled by nodejs.
  • There should be an event API for hooking into GIT for when a push is made to a repo for example.
  • Files need to be hosted via http, https, git, or ssh. At least one secure method is needed
  • User wants to store files in local or off-site locations (e.g. s3, mongodb, local fs...)
  • User needs the ability to clone files hosted via js-git
  • User needs the ability to push to the repo.
  • User needs the ability to host multiple repos.
  • User needs to support basic auth and ssh keys.

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

Activity

  1. creationix commented on Aug 31, 2013

    @creationix
    Owner

    Thanks for writing this up. I very much value use cases to know which direction to prioritize. This can be milestone #4 if that's soon enough (a few months out). Right now I'm working super hard to finish milestone #1 since that alone will be enough for many people's use cases. A large part of this work is creating packfiles which is currently part of milestone #2.

    One comment on ssh. It's probably best to reuse the existing ssh server in servers. That's how real git works. What I would be re-implementing is the various shell commands that get spawned. These mini processes would then need to connect to the main git server process and talk to it on the client's behalf.

    Now it would be more efficient if node was also also the ssh server and only understood git commands. But then your server wouldn't have an ssh server for remote logins anymore (unless node handled that too).

    Also I would like to keep a js-git powered client as a separate task as a js-git powered server. Your use case may require both ends to be node powered, but many others do not.

  2. mattapperson commented on Aug 31, 2013

    @mattapperson
    Author

    My use case right now just requires js-git on the server... I would rather the client be able to use regular GIT.

    SSH makes sense, I just wanted to point out the need for it.

    Milestone 4 works... the sooner the better, but at the end of the day I understand the need to wait till milestone #4

  3. creationix commented on Nov 22, 2013

    @creationix
    Owner

    I have a sample js-git server I'm using to develop the server-side of js-git. I just finished a basic version of repo.receivePack that allows you to push to js-git powered servers!
    https://github.com/creationix/js-git/blob/master/examples/serve.js

    It's still missing the protocol "report-status" extension that will be needed for post-commit hooks though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions