Skip to content

Instantly share code, notes, and snippets.

@a5ync
Created January 29, 2022 22:54
Show Gist options
  • Select an option

  • Save a5ync/2231c572a17708869c788f589da3b86c to your computer and use it in GitHub Desktop.

Select an option

Save a5ync/2231c572a17708869c788f589da3b86c to your computer and use it in GitHub Desktop.
Decompress git objects
import zlib
import sys
print sys.argv
if len(sys.argv) > 1:
compressed_content = open(sys.argv[1], 'rb').read()
decompressed = zlib.decompress(compressed_content)
print decompressed
else:
print 'input file not provided'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment