summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-16 11:31:08 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-16 11:31:08 -0800
commit3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90 (patch)
tree338c7044efbd16d4bbe9a269462f1cc303d53fe9 /tests
parentde071dcd8dee3d853291a5077b9dcdec07dd5362 (diff)
downloadthird_party-ruby-git-3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90.zip
third_party-ruby-git-3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90.tar.gz
third_party-ruby-git-3c1b3f01465a74f7e0617c1d6f06a1f0bf684c90.tar.xz
added update-ref
Diffstat (limited to 'tests')
-rw-r--r--tests/units/test_tree_ops.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/units/test_tree_ops.rb b/tests/units/test_tree_ops.rb
index 7dba642..f8e771a 100644
--- a/tests/units/test_tree_ops.rb
+++ b/tests/units/test_tree_ops.rb
@@ -95,8 +95,15 @@ class TestTreeOps < Test::Unit::TestCase
assert(index['b3/test-file3'])
g.commit('hi')
end
-
assert(c.commit?)
+
+ files = g.ls_files
+ assert(!files['b1/example.txt'])
+
+ g.branch('newbranch').update_ref(c)
+ g.checkout('newbranch')
+ assert(!files['b1/example.txt'])
+
assert_equal('b40f7a9072cdec637725700668f8fdebe39e6d38', c.gtree.sha)
end