forked from TrueCloudLab/restic
cmd_cat: allow dumping raw tree blobs
This commit is contained in:
parent
ba8e6035b0
commit
50c2f2e87f
1 changed files with 1 additions and 5 deletions
|
@ -167,12 +167,8 @@ func (cmd CmdCat) Execute(args []string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if blob.Type != pack.Data {
|
||||
return errors.New("wrong type for blob")
|
||||
}
|
||||
|
||||
buf := make([]byte, blob.Length)
|
||||
data, err := repo.LoadBlob(pack.Data, id, buf)
|
||||
data, err := repo.LoadBlob(blob.Type, id, buf)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue