Skip to content

Commit

Permalink
Fix zip format recognition
Browse files Browse the repository at this point in the history
Changes introduced by commit dc84afd
("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)
  • Loading branch information
goriy committed Sep 27, 2018
1 parent 96dbc1d commit f19b099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_archive_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class GitArchiver(object):
'gz': 'w:gz',
'xz': 'w:xz'
}
ZIPFILE_FORMATS = ('.zip',)
ZIPFILE_FORMATS = ('zip',)

LOG = logging.getLogger('GitArchiver')

Expand Down

0 comments on commit f19b099

Please sign in to comment.