fix(commits): add helpful error when lastRelease not in history

Closes #61, Closes #50
This commit is contained in:
Stephan Bönnemann
2015-08-22 19:31:29 +02:00
parent a2d6db2ce5
commit 5cc7da6035
4 changed files with 74 additions and 20 deletions
+4
View File
@@ -5,6 +5,10 @@ const rawCommits = [
module.exports = {
exec: (command, cb) => {
if (/contains/.test(command)) {
return cb(null, `whatever\nmaster\n`)
}
cb(
null,
/\.\.HEAD/.test(command) ?