style: branch available in options not root of config

This commit is contained in:
Stephan Bönnemann
2015-08-22 19:49:09 +02:00
parent 5cc7da6035
commit a16c36ed4d
3 changed files with 7 additions and 6 deletions
+2 -1
View File
@@ -4,7 +4,8 @@ const log = require('npmlog')
const SemanticReleaseError = require('@semantic-release/error')
module.exports = function ({lastRelease, branch}, cb) {
module.exports = function ({lastRelease, options}, cb) {
const branch = options.branch
const from = lastRelease.gitHead
const range = (from ? from + '..' : '') + 'HEAD'