From 31778fd3bf3f8020c10e806a18436fd85a0a1488 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 8 Jul 2024 11:24:48 -0700 Subject: [PATCH] Fix error in borgmatic rcreate/init on empty repository directory with Borg 1.4 (#896). --- NEWS | 1 + borgmatic/borg/rcreate.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ceee7d7b..8a5acf76 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ 1.8.14.dev0 + * #896: Fix error in borgmatic rcreate/init on empty repository directory with Borg 1.4. * Add a recent contributors section to the documentation, because credit where credit's due! See: https://torsion.org/borgmatic/#recent-contributors diff --git a/borgmatic/borg/rcreate.py b/borgmatic/borg/rcreate.py index 7735c916..b76cae01 100644 --- a/borgmatic/borg/rcreate.py +++ b/borgmatic/borg/rcreate.py @@ -9,7 +9,7 @@ from borgmatic.execute import DO_NOT_CAPTURE, execute_command logger = logging.getLogger(__name__) -RINFO_REPOSITORY_NOT_FOUND_EXIT_CODES = {2, 13} +RINFO_REPOSITORY_NOT_FOUND_EXIT_CODES = {2, 13, 15} def create_repository(