Skip to content

Commit 4cb92a7

Browse files
committed
fixed dumb null byte error
1 parent 53a99b6 commit 4cb92a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/48_How_Git_Stores_Objects/0_ How_Git_Stores_Objects.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ implementation of object storage:
2929
def put_raw_object(content, type)
3030
size = content.length.to_s
3131

32-
header = "#{type} #{size}\0"
32+
header = "#{type} #{size}\\0" # type(space)size(null byte)
3333
store = header + content
3434
3535
sha1 = Digest::SHA1.hexdigest(store)

0 commit comments

Comments
 (0)