summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/git/lib.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/git/lib.rb b/lib/git/lib.rb
index ad34709..3aafc4b 100644
--- a/lib/git/lib.rb
+++ b/lib/git/lib.rb
@@ -512,9 +512,9 @@ module Git
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