We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea488b commit 61d3d4eCopy full SHA for 61d3d4e
lib/git/lib.rb
@@ -139,7 +139,8 @@ def process_commit_data(data, sha = nil)
139
if line == ''
140
in_message = !in_message
141
elsif in_message
142
- hsh['message'] << line << "\n"
+ hsh['message'] << "\n" if hsh['message'] != ''
143
+ hsh['message'] << line[4..-1]
144
else
145
data = line.split
146
key = data.shift
@@ -385,10 +386,7 @@ def commit(message, opts = {})
385
386
arr_opts = ['-m', message]
387
arr_opts << '-a' if opts[:add_all]
388
arr_opts << '--allow-empty' if opts[:allow_empty]
- if opts[:author]
389
- arr_opts << "--author"
390
- arr_opts << opts[:author]
391
- end
+ arr_opts << "--author" << opts[:author] if opts[:author]
392
command('commit', arr_opts)
393
end
394
0 commit comments