Rename field in Snapshot: Tree -> TreeID

This commit is contained in:
Alexander Neumann committed 2014-08-04 23:25:32 +02:00
1 parent 500f4f9997
commit b923a2065a
4 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ func commandBackup(repo *khepri.Repository, args []string) error {
}
sn := khepri.NewSnapshot(target)
sn.Tree = id
sn.TreeID = id
snid, err := sn.Save(repo)
if err != nil {
+1 -1
View File
@@ -127,7 +127,7 @@ func commandRestore(repo *khepri.Repository, args []string) error {
log.Fatalf("error loading snapshot %s", id)
}
err = restore_dir(repo, sn.Tree, target)
err = restore_dir(repo, sn.TreeID, target)
if err != nil {
return err
}