You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A submodule in a directory causes the entire directory to not be "blob get contents" able. #12
If you import the jquery library and go to /src/ for example you won't be able to read the blob contents of any of the files there (regex error No match for regexp /(blob|tree)/A ParserBase.php line 83 ) when attempting to $blob->getContents(); of any file.
Most likely would be solved by adding submodule stuff.
This is already fixed in the current codebase: the tree parser now recognizes the commit entry type used by submodules (TreeParser accepts blob, tree and commit), and Tree builds a CommitReference for them instead of failing to parse the rest of the tree. Blob::getContent() also reads content directly via cat-file -p <hash>, independent of tree parsing, so it was never actually affected by this either.
I verified with the test fixture (which contains a barbaz submodule alongside regular files) that reading a blob's content next to a submodule works fine, and opened #243 to add a regression test locking in this behavior.
Activity
lyrixx commentedon Sep 7, 2026
This is already fixed in the current codebase: the tree parser now recognizes the
commitentry type used by submodules (TreeParseracceptsblob,treeandcommit), andTreebuilds aCommitReferencefor them instead of failing to parse the rest of the tree.Blob::getContent()also reads content directly viacat-file -p <hash>, independent of tree parsing, so it was never actually affected by this either.I verified with the test fixture (which contains a
barbazsubmodule alongside regular files) that reading a blob's content next to a submodule works fine, and opened #243 to add a regression test locking in this behavior.Closing once #243 is merged.
test: add regression test for blob reading next to a submodule (#243)