diff options
Diffstat (limited to 'internal/testgit/repo_hash_object.go')
| -rw-r--r-- | internal/testgit/repo_hash_object.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/testgit/repo_hash_object.go b/internal/testgit/repo_hash_object.go index 97a86be5..b21e1231 100644 --- a/internal/testgit/repo_hash_object.go +++ b/internal/testgit/repo_hash_object.go @@ -3,14 +3,14 @@ package testgit import ( "testing" - "codeberg.org/lindenii/furgit/oid" + "codeberg.org/lindenii/furgit/objectid" ) // HashObject hashes and writes an object and returns its object ID. -func (repo *TestRepo) HashObject(tb testing.TB, objType string, body []byte) oid.ObjectID { +func (repo *TestRepo) HashObject(tb testing.TB, objType string, body []byte) objectid.ObjectID { tb.Helper() hex := repo.RunInput(tb, body, "hash-object", "-t", objType, "-w", "--stdin") - id, err := oid.ParseHex(repo.algo, hex) + id, err := objectid.ParseHex(repo.algo, hex) if err != nil { tb.Fatalf("parse git hash-object output %q: %v", hex, err) } |
