This repository was archived by the owner on Jan 2, 2025. It is now read-only.
Commit 001ca9f
authored
ignore non-blob objects in git file sources (#557)
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 workflows1 parent bf83ac5 commit 001ca9f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| |||
0 commit comments