Add dangling blob detection and removal to 'fsck'

This commit is contained in:
Alexander Neumann committed 2014-12-22 14:46:54 +01:00
1 parent a981141e49
commit 1944ab13d4
4 files changed
+157 -20

No files matched your search

+4
View File
@@ -130,6 +130,10 @@ func create(u string) (backend.Backend, error) {
}
func OpenRepo() (restic.Server, error) {
if opts.Repo == "" {
return restic.Server{}, errors.New("Please specify repository location (-r)")
}
be, err := open(opts.Repo)
if err != nil {
return restic.Server{}, err