1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 06:31:58 +00:00

Fix borg break-lock ignoring BORG_REPO env var

This commit is contained in:
Marian Beermann 2016-07-13 20:04:20 +02:00
parent bbb280c129
commit 7053a72140

View file

@ -1316,7 +1316,7 @@ def build_parser(self, args=None, prog=None):
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')