Rename types and errmsg function

This commit is contained in:
Alexander Neumann 2014-08-03 15:16:56 +02:00
parent 5cbd1d0090
commit fbd33636f0
5 changed files with 22 additions and 23 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(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)