From f19b0990ae87d97dc495672e8af7eb733eff461a Mon Sep 17 00:00:00 2001 From: goriy Date: Thu, 27 Sep 2018 12:20:06 +0300 Subject: [PATCH] Fix zip format recognition Changes introduced by commit dc84afd7f10b7a8eca7bc7637d87f147a1eb66e4 ("Fix tbz2 format was not recognized" - 20.09.2018) broke zip format recognintion. File extension returned from os.path.splitext() is 'zip', not '.zip' Before breaking changes extension checking code looked like "if output_format == 'zip':" (without dot) --- git_archive_all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_archive_all.py b/git_archive_all.py index 834c0d4..47bbb08 100755 --- a/git_archive_all.py +++ b/git_archive_all.py @@ -72,7 +72,7 @@ class GitArchiver(object): 'gz': 'w:gz', 'xz': 'w:xz' } - ZIPFILE_FORMATS = ('.zip',) + ZIPFILE_FORMATS = ('zip',) LOG = logging.getLogger('GitArchiver')