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:
parent
ba8e6035b0
commit
50c2f2e87f
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user