libgit2/rugged — Issue #37: Error converting hex_to_raw and back
Author: nickh
Created: 2011-12-06 16:05:21+00:00
State: open

Some commits seem to be converted to raw in such a way that converting back with raw_to_hex fails:

ruby-1.8.7-p352 :011 > Rugged.hex_to_raw '702f00394564b24052511cb69961164828bf5494'
=> "p/\0009Ed\262@RQ\034\266\231a\026H(\277T\224"
ruby-1.8.7-p352 :012 > Rugged.raw_to_hex _
ArgumentError: string contains null byte
from (irb):12:in `raw_to_hex'
from (irb):12