]> arthur.barton.de Git - bup.git/commit
save: add empty metadata if reading fails
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 25 Jan 2020 21:18:53 +0000 (22:18 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 23 Feb 2020 20:24:47 +0000 (14:24 -0600)
commit47891d8951a95b8e0d9ca94387107cdf12ca3d3c
treebb8741b309c99999aea8385d18ce2f8f093dcc1a
parent9dd0ee7a49ac1cfb056aea5a64079d924e811085
save: add empty metadata if reading fails

If we cannot read a file's metadata, we must add an entry in the
repository nonetheless because the bupm contents must match the
tree contents.

Add a dummy (empty) metadata entry in this case, as is already
done when reading a directory's metadata.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
cmd/save-cmd.py