aboutsummaryrefslogtreecommitdiff
path: root/object/tree
diff options
context:
space:
mode:
Diffstat (limited to 'object/tree')
-rw-r--r--object/tree/roundtrip_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/tree/roundtrip_test.go b/object/tree/roundtrip_test.go
index 3e82c79a..a9d5f40f 100644
--- a/object/tree/roundtrip_test.go
+++ b/object/tree/roundtrip_test.go
@@ -70,7 +70,7 @@ func assertEntriesEqual(t *testing.T, got []tree.Entry, want []tree.Entry) {
t.Fatalf("entry[%d] mode = %o, want %o", i, got[i].Mode, want[i].Mode)
}
- if got[i].Name != want[i].Name {
+ if !bytes.Equal(got[i].Name, want[i].Name) {
t.Fatalf("entry[%d] name = %q, want %q", i, got[i].Name, want[i].Name)
}