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 8a1b260 commit 9f737ebCopy full SHA for 9f737eb
lib/git/lib.rb
@@ -1031,7 +1031,7 @@ def commit_tree(tree, opts = {})
1031
arr_opts = []
1032
arr_opts << tree
1033
arr_opts << '-p' << opts[:parent] if opts[:parent]
1034
- arr_opts += [opts[:parents]].map { |p| ['-p', p] }.flatten if opts[:parents]
+ arr_opts += Array(opts[:parents]).map { |p| ['-p', p] }.flatten if opts[:parents]
1035
command('commit-tree', *arr_opts, redirect: "< #{escape t.path}")
1036
end
1037
@@ -1101,7 +1101,7 @@ def current_command_version
1101
# @example
1102
# lib.current_command_version #=> [2, 42, 0]
1103
#
1104
- # lib.compare_version_to(2, 41, 0) #=> 1
+ # lib.compare_version_to(2, 41, 0) #=> 1
1105
# lib.compare_version_to(2, 42, 0) #=> 0
1106
# lib.compare_version_to(2, 43, 0) #=> -1
1107
0 commit comments