]> git.proxmox.com Git - proxmox-backup.git/commit
pull/sync: clamp (local) max-depth if unset
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 13 May 2022 09:33:08 +0000 (11:33 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 13 May 2022 10:07:22 +0000 (12:07 +0200)
commit87be232d1c771200617329ed4cc3c09cf21bc730
tree6636e61d52e0c6587f632e3dad388052fc33de4a
parente40c7fb9069baf2a1694780870d6c28ab2bf4172
pull/sync: clamp (local) max-depth if unset

to handle the unlikely case of `ns` being deeper than `remote-ns`,
`max-depth` being set to `None` and a too-deep sub-ns of `ns` existing.
such a sub-ns cannot have been created by a previous run of this sync
job, so avoid unexpectedly removing it.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/server/pull.rs