adding-help: commit prevent the use of semicolon

This commit is contained in:
rkiel
2015-06-07 20:22:30 -04:00
parent 5f99a16fd3
commit 9e822ca492

View File

@@ -18,10 +18,15 @@ module Feature
parts = parse_branch(current_branch)
comment = argv.reject { |x| x == '-m' }.join(' ')
if comment.include? ";"
error "invalid character: ';'"
else
comment = "#{parts[:feature]}: #{comment}"
git_commit comment
end
end
end
end