@@ -190,7 +190,7 @@ func TestBomb(t *testing.T) {
190190
191191 assert .Equal (counts .Count32 (1 ), h .ReferenceCount , "reference count" )
192192
193- assert .Equal (counts .Count32 (11 ), h .MaxPathDepth , "max path depth" )
193+ assert .Equal (counts .Count32 (10 ), h .MaxPathDepth , "max path depth" )
194194 assert .Equal ("refs/heads/master^{tree}" , h .MaxPathDepthTree .Path (), "max path depth tree" )
195195 assert .Equal (counts .Count32 (29 ), h .MaxPathLength , "max path length" )
196196 assert .Equal ("refs/heads/master^{tree}" , h .MaxPathLengthTree .Path (), "max path length tree" )
@@ -272,10 +272,11 @@ func TestFromSubdir(t *testing.T) {
272272
273273 repo2 , err := git .NewRepository (filepath .Join (path , "subdir" ))
274274 require .NoError (t , err , "creating Repository object in subdirectory" )
275- _ , err = sizes .ScanRepositoryUsingGraph (
275+ h , err : = sizes .ScanRepositoryUsingGraph (
276276 repo2 , git .AllReferencesFilter , sizes .NameStyleNone , false ,
277277 )
278278 require .NoError (t , err , "scanning repository" )
279+ assert .Equal (t , counts .Count32 (2 ), h .MaxPathDepth , "max path depth" )
279280}
280281
281282func TestSubmodule (t * testing.T ) {
0 commit comments