mirror of
https://github.com/restic/restic.git
synced 2026-10-19 07:58:11 +00:00
cmd_cat: allow dumping raw tree blobs
This commit is contained in:
1 parent
ba8e6035b0
commit
50c2f2e87f
1 file changed
+1
-5
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user