add git branch support to the configs
Add git branch support to the configs, defaults to master. config.yml: ```yml git: branch: <branch-name> ```
This commit is contained in:
parent
a5a852baed
commit
1aaba802a4
@ -49,14 +49,17 @@ module.exports = {
|
|||||||
self._repo.path = appconfig.paths.repo
|
self._repo.path = appconfig.paths.repo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// -> Initialize repository
|
// -> Initialize repository
|
||||||
|
|
||||||
self.onReady = self._initRepo(appconfig)
|
self.onReady = self._initRepo(appconfig)
|
||||||
|
|
||||||
// Define signature
|
|
||||||
|
|
||||||
if (appconfig.git) {
|
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
|
return self
|
||||||
|
Loading…
Reference in New Issue
Block a user