Commit 1aaba802 authored by Ahmad Bamieh's avatar Ahmad Bamieh Committed by Nicolas Giard

add git branch support to the configs

Add git branch support to the configs, defaults to master. config.yml: ```yml git: branch: <branch-name> ```
parent a5a852ba
......@@ -48,15 +48,18 @@ module.exports = {
} else {
self._repo.path = appconfig.paths.repo
}
// -> Initialize repository
self.onReady = self._initRepo(appconfig)
// Define signature
if (appconfig.git) {
self._signature.email = appconfig.git.serverEmail || 'wiki@example.com'
// Set repo branch
self._repo.branch = appconfig.git.branch || 'master';
// Define signature
self._signature.email = appconfig.git.serverEmail || 'wiki@example.com';
}
return self
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment