(dir, file) = os.path.split(ent.name)
exists = (ent.flags & index.IX_EXISTS)
hashvalid = already_saved(ent)
+ wasmissing = ent.sha_missing()
oldsize = ent.size
if opt.verbose:
if not exists:
else:
ent.validate(040000, newtree)
ent.repack()
- if exists and ent.sha_missing():
+ if exists and wasmissing:
count += oldsize
continue
ent.validate(int(mode, 8), id)
ent.repack()
shalists[-1].append((mode, file, id))
- if exists and ent.sha_missing():
+ if exists and wasmissing:
count += oldsize
subcount = 0