Skip to content

Commit

Permalink
patch provided by Nick Hengeveld
Browse files Browse the repository at this point in the history
  • Loading branch information
scott Chacon committed Jan 15, 2008
1 parent 8185e20 commit 1f40e40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/git/lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,9 @@ def write_tree

def commit_tree(tree, opts = {})
opts[:message] = "commit tree #{tree}" if !opts[:message]
t = Tempfile.new('commit-message') do |t|
t.write(opts[:message])
end
t = Tempfile.new('commit-message')
t.write(opts[:message])
t.close

arr_opts = []
arr_opts << tree
Expand Down

0 comments on commit 1f40e40

Please sign in to comment.