summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2008-01-14 17:47:09 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2008-01-14 17:47:09 -0800
commit1f40e4014c9196279b47977daf323b5a8e2f8ae2 (patch)
treece80430d01832c78074653e8dafdf6fa48b4a1d5
parent8185e202dfe6a70fb04d3eec7826e4ea54866c4a (diff)
downloadthird_party-ruby-git-1f40e4014c9196279b47977daf323b5a8e2f8ae2.zip
third_party-ruby-git-1f40e4014c9196279b47977daf323b5a8e2f8ae2.tar.gz
third_party-ruby-git-1f40e4014c9196279b47977daf323b5a8e2f8ae2.tar.xz
patch provided by Nick Hengeveld
-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