forked from TrueCloudLab/restic
Rename types and errmsg function
This commit is contained in:
parent
5cbd1d0090
commit
fbd33636f0
5 changed files with 22 additions and 23 deletions
|
@ -70,7 +70,7 @@ func archive_dir(repo *khepri.DirRepository, path string) (khepri.ID, error) {
|
|||
|
||||
var buf bytes.Buffer
|
||||
t.Save(&buf)
|
||||
id, err := repo.PutRaw(khepri.TypeRef, buf.Bytes())
|
||||
id, err := repo.PutRaw(khepri.TYPE_BLOB, buf.Bytes())
|
||||
|
||||
if err != nil {
|
||||
log.Printf("error saving tree to repo: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue