gabrielcsapo / node-git-server

🎡 A configurable git server written in Node.js
https://gabrielcsapo.github.io/node-git-server
MIT License
253 stars 73 forks source link

Add `repoTemplatePath` as a startup option. #74

Closed chmac closed 3 years ago

chmac commented 4 years ago

This passes the --template=... flag to the git init command. This allows config values and other defaults to be overwritten for newly created repositories.

I've tested this a bit locally and it seems to work. I haven't added any tests to tests/git.js though. I've noticed this repo has been a bit quiet in recent times, so I'll also publish this under my own scope as @chmac/node-git-server as I want to use this right away, and it's not clear if / when you might get around to reviewing PRs.

Thanks again for the code, node-git-server has saved me a ton of effort to get a simple git backend hosting service running.

chmac commented 3 years ago

Closing given the time passage and the fact I no longer have time to put into any requested changes, etc. This change is included in my fork for anybody who wants to use it or merge it here.