Use IO.pipe instead of StringIO to archive repositories to tar files. This addresses issue #1.
IO.pipe
StringIO