Skip to content
This repository was archived by the owner on Jan 2, 2025. It is now read-only.

Conversation

@oppiliappan
Copy link
Contributor

sometimes tree-like objects would enter this function, and result in their object data being read into a buffer (they are not utf8 strings); producing funny looking buffer data:

40000 ISSUE_TEMPLATEoDW$yhQ��M��\fX��V�40000 workflows�\nk��$�*^c���0N*7

inspecting the object in git shows that it is a tree and not a blob:

λ git cat-file -t 3f8a07d9041eeeec38bbde7306023065257fb521
tree

λ git cat-file -p 3f8a07d9041eeeec38bbde7306023065257fb521
040000 tree 6f445724796851c614b74d7fba9e0c58aaee5686    ISSUE_TEMPLATE
040000 tree ee0a6b10e9e924f92a5e63bb95d730054e2a375c    workflows

sometimes tree-like objects would enter this function, and result in
their object data being read into a buffer (they are not utf8 strings);
producing funny looking buffer data:

    40000 ISSUE_TEMPLATEoDW$yhQ��M��\fX��V�40000 workflows�\nk��$�*^c���0N*7

inspecting the object in git shows that it is a tree and not a blob:

    λ git cat-file -t 3f8a07d
    tree

    λ git cat-file -p 3f8a07d
    040000 tree 6f44572    ISSUE_TEMPLATE
    040000 tree ee0a6b1    workflows
@oppiliappan oppiliappan requested a review from rsdy May 24, 2023 09:19
@oppiliappan oppiliappan merged commit 001ca9f into main May 24, 2023
@oppiliappan oppiliappan deleted the fix-invalid-dir branch May 24, 2023 10:01
ggordonhall added a commit that referenced this pull request May 24, 2023
ggordonhall added a commit that referenced this pull request May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants