diff --git a/lib/rugged/version.rb b/lib/rugged/version.rb index 9daa65a8c..f7eea16d8 100644 --- a/lib/rugged/version.rb +++ b/lib/rugged/version.rb @@ -1,3 +1,3 @@ module Rugged - Version = VERSION = '0.24.0b14' + Version = VERSION = '0.24.0' end diff --git a/test/tree_test.rb b/test/tree_test.rb index d646c0838..23fc22be5 100644 --- a/test/tree_test.rb +++ b/test/tree_test.rb @@ -157,6 +157,13 @@ def test_treebuilder_add_nonexistent_fails end end + def test_treebuilder_add_submodules_always_succeeds + builder = Rugged::Tree::Builder.new(@repo, @repo.head.target.tree) + builder << { :type => :commit, :name => "submodule", :oid => "0000000000000000000000000000000000000000", :filemode => 0160000 } + newtree = builder.write + assert_equal "ce986db11f99880a0a087ba3220dba61e9afd918", newtree + end + def test_treebuilder_add_nonexistent_can_pass begin Rugged::Settings['strict_object_creation'] = false diff --git a/vendor/libgit2 b/vendor/libgit2 index edaffe22a..785d8c48e 160000 --- a/vendor/libgit2 +++ b/vendor/libgit2 @@ -1 +1 @@ -Subproject commit edaffe22a205c57022cc365ab20dcbf7e22f68c4 +Subproject commit 785d8c48ea8725691da3c50e7dae8751523d4c30