|
@@ -114,7 +114,7 @@ def write_cache_entry(f, entry):
|
|
|
write_cache_time(f, ctime)
|
|
|
write_cache_time(f, mtime)
|
|
|
flags = len(name) | (flags &~ 0x0fff)
|
|
|
- f.write(struct.pack(">LLLLLL20sH", dev, ino, mode, uid, gid, size, hex_to_sha(sha), flags))
|
|
|
+ f.write(struct.pack(">LLLLLL20sH", dev & 0xFFFFFFFF, ino & 0xFFFFFFFF, mode, uid, gid, size, hex_to_sha(sha), flags))
|
|
|
f.write(name)
|
|
|
real_size = ((f.tell() - beginoffset + 8) & ~7)
|
|
|
f.write("\0" * ((beginoffset + real_size) - f.tell()))
|