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.
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.
This passes the
--template=...
flag to thegit 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.