2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 19:38:57 +00:00

cmd_cat: allow dumping raw tree blobs

This commit is contained in:
Alexander Neumann 2015-08-08 18:50:39 +02:00
parent ba8e6035b0
commit 50c2f2e87f

View File

@ -167,12 +167,8 @@ func (cmd CmdCat) Execute(args []string) error {
return err return err
} }
if blob.Type != pack.Data {
return errors.New("wrong type for blob")
}
buf := make([]byte, blob.Length) buf := make([]byte, blob.Length)
data, err := repo.LoadBlob(pack.Data, id, buf) data, err := repo.LoadBlob(blob.Type, id, buf)
if err != nil { if err != nil {
return err return err
} }