1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 17:57:59 +00:00

Merge pull request #5133 from fantasya-pbem/bugfix/4029_Borg-commands-accept-absolute-paths

[BUGFIX] Borg commands accept absolute pathes, #4029
This commit is contained in:
TW 2020-04-18 23:08:26 +02:00 committed by GitHub
commit b46fcf0516
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ def match(self, path):
in self.fallback is returned (defaults to None).
"""
path = normalize_path(path)
path = normalize_path(path).lstrip(os.path.sep)
# do a fast lookup for full path matches (note: we do not count such matches):
non_existent = object()
value = self._path_full_patterns.get(path, non_existent)