Merge pull request #2577 from alrs/fix-internal-errs

internal: Fix code and test dropped errors
This commit is contained in:
rawtaz
2020-02-12 23:41:54 +01:00
committed by GitHub
4 changed files with 7 additions and 0 deletions

View File

@@ -823,6 +823,10 @@ func (arch *Archiver) Snapshot(ctx context.Context, targets []string, opts Snaps
}
sn, err := restic.NewSnapshot(targets, opts.Tags, opts.Hostname, opts.Time)
if err != nil {
return nil, restic.ID{}, err
}
sn.Excludes = opts.Excludes
if !opts.ParentSnapshot.IsNull() {
id := opts.ParentSnapshot