Skip to content

Commit

Permalink
Fix guess_mimetype of rbt >= 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
misery committed Dec 6, 2024
1 parent e60fe41 commit d3be692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/mercurial_git_push.py
Original file line number Diff line number Diff line change
@@ -702,7 +702,7 @@ def upload(id, filename, revision, source_file=False):
invalid_mimetypes = []

def supported(content):
mime = guess_mimetype(content)
mime = guess_mimetype(data=content)
if not mime or mime in invalid_mimetypes:
return False

0 comments on commit d3be692

Please sign in to comment.