feature: fixed the word commit as the first word

This commit is contained in:
rkiel
2015-07-18 08:55:52 -04:00
parent f7060ac932
commit 60b1c90cc1

View File

@@ -14,7 +14,9 @@ module Feature
def execute def execute
parts = parse_branch(current_branch) parts = parse_branch(current_branch)
comment = argv.reject { |x| x == '-m' }.join(' ') comment = argv.reject { |x| x == '-m' }
comment.shift if comment[0] == 'commit'
comment = comment.join(' ')
comment = "#{parts[:feature]}: #{comment}" comment = "#{parts[:feature]}: #{comment}"
git_commit comment git_commit comment