mirror of
https://github.com/kopia/kopia.git
synced 2026-10-22 14:15:03 -04:00
Migrate: pick latest instead of oldest snapshot with --latest-only (#1420)
Fix #1414
This commit is contained in:
1 parent
3a40cc621f
commit
3e43f8e76f
1 file changed
+1
-1
@@ -291,7 +291,7 @@ func (c *commandSnapshotMigrate) migrateSingleSourceSnapshot(ctx context.Context
|
||||
|
||||
func (c *commandSnapshotMigrate) filterSnapshotsToMigrate(s []*snapshot.Manifest) []*snapshot.Manifest {
|
||||
if c.migrateLatestOnly && len(s) > 0 {
|
||||
s = s[0:1]
|
||||
s = s[len(s)-1:]
|
||||
}
|
||||
|
||||
return s
|
||||
|
||||
Reference in new issue
Block a user