Skip to main content

Module migrate_encryption

Module migrate_encryption 

Source
Expand description

Encrypt a repository that was created before encryption was switched on.

Turning enabled = true on an existing repository used to leave it unreadable: the index and objects already on disk carry no encryption header, so every command failed. This walks that content and encrypts it in place, which is the step that was missing.

The walk is per file and idempotent. Anything already encrypted is left alone, so an interrupted run is finished by running it again rather than leaving the repository half-converted.

Functionsยง

execute
Encrypt an existing repository in place.