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

feat: allow initial-branch option for git init #109

Closed dlvhdr closed 1 year ago

dlvhdr commented 1 year ago

Currently, my .gitconfig contains the defaultBranch option to be main. node-git-server uses that to init the default branch. In tests I'd like to have a consistent default branch name, so it doesn't depend on my particular setup.

Signed-off-by: Dolev Hadar dolevc2@gmail.com

dlvhdr commented 1 year ago

Hi @gabrielcsapo, just a draft. Let me know what you think and I can make any necessary changes.