fix file corruption regression in 'got checkout' caused by commit db696021