1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 07:43:03 +00:00

Fix commands

This commit is contained in:
Alexander Neumann 2014-08-01 22:20:15 +02:00
parent 76074839cf
commit 11d6aa5328
2 changed files with 3 additions and 3 deletions

View file

@ -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(buf.Bytes())
id, err := repo.PutRaw(khepri.TypeRef, buf.Bytes())
if err != nil {
log.Printf("error saving tree to repo: %v", err)

View file

@ -13,7 +13,7 @@ import (
func restore_file(repo *khepri.DirRepository, node khepri.Node, target string) error {
fmt.Printf(" restore file %q\n", target)
rd, err := repo.Get(node.Content)
rd, err := repo.Get(khepri.TypeBlob, node.Content)
if err != nil {
return err
}
@ -49,7 +49,7 @@ func restore_file(repo *khepri.DirRepository, node khepri.Node, target string) e
func restore_dir(repo *khepri.DirRepository, id khepri.ID, target string) error {
fmt.Printf(" restore dir %q\n", target)
rd, err := repo.Get(id)
rd, err := repo.Get(khepri.TypeRef, id)
if err != nil {
return err
}