Create backup branches under refs/backups/
If we create backups as regular branches under refs/heads, then those
will also be handled by the plugin and we can possibly end up with
ridiculous amounts of backups of backups. They will also be replicated
by default, which will cause unnecessary network traffic.
Instead, create the backup branches under the refs/backups/ namespace
using refs/backups/heads for branches and refs/backups/tags for tags.
Split the functionality for generating the backup branch name out into
a utility class, and add unit tests for it.
Update the 'about' documentation with more details.
5 files changed