Make Reference call the NIF itself
This commit is contained in:
@@ -15,8 +15,9 @@ defmodule ObjectTest do
|
||||
{ :ok, odb } = Repository.odb(repo)
|
||||
#{ :ok, index } = :geef_index.new
|
||||
|
||||
content = "I'm some content"
|
||||
Odb.write(odb, content, :blob)
|
||||
content = "This is some text that will go in a file"
|
||||
{:ok, id} = Odb.write(odb, content, :blob)
|
||||
assert id == Oid.parse("c300118399f01fe52b316061b5d32beb27e0adfd")
|
||||
|
||||
Repository.stop(repo)
|
||||
end
|
||||
|
||||
@@ -20,9 +20,9 @@ defmodule ReferenceTest do
|
||||
{:ok, looked_up} = Reference.lookup(repo, refname)
|
||||
assert ref == looked_up
|
||||
|
||||
refname = "refs/tags/foo2"
|
||||
{:ok, ref} = Reference.create_symbolic(repo, refname, id)
|
||||
{:ok, looked_up} = Reference.lookup(repo, refname)
|
||||
refname2 = "refs/tags/foo2"
|
||||
{:ok, ref} = Reference.create_symbolic(repo, refname2, refname)
|
||||
{:ok, looked_up} = Reference.lookup(repo, refname2)
|
||||
assert ref == looked_up
|
||||
|
||||
Repository.stop(repo)
|
||||
|
||||
Reference in New Issue
Block a user