Skip to content

Commit 690b2de

Browse files
committed
One more fix for Ruby 1.9.1 compatibility (String#map? Did that *ever* exist?)
Note: I'm not entirely sure if this is the correct fix, however, it fixes errors in the test suite, and I'll assume completeness on the part of the tests.
1 parent 3b262a7 commit 690b2de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ def commit_tree(tree, opts = {})
551551
arr_opts = []
552552
arr_opts << tree
553553
arr_opts << "-p #{opts[:parent]}" if opts[:parent]
554-
arr_opts += opts[:parents].map { |p| "-p #{p.to_s}" } if opts[:parents]
554+
arr_opts += [opts[:parents]].flatten.map { |p| "-p #{p.to_s}" } if opts[:parents]
555555
arr_opts << "< #{t.path}"
556556
command('commit-tree', arr_opts)
557557
end

0 commit comments

Comments
 (0)