From 7053a721409fcfe7cceec5934a7cc915e884b7d0 Mon Sep 17 00:00:00 2001 From: Marian Beermann Date: Wed, 13 Jul 2016 20:04:20 +0200 Subject: [PATCH] Fix borg break-lock ignoring BORG_REPO env var --- borg/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg/archiver.py b/borg/archiver.py index 5fc05ee28..cdf12ef7c 100644 --- a/borg/archiver.py +++ b/borg/archiver.py @@ -1316,7 +1316,7 @@ class Archiver: formatter_class=argparse.RawDescriptionHelpFormatter, help='break repository and cache locks') subparser.set_defaults(func=self.do_break_lock) - subparser.add_argument('location', metavar='REPOSITORY', + subparser.add_argument('location', metavar='REPOSITORY', nargs='?', default='', type=location_validator(archive=False), help='repository for which to break the locks')