class Git::Lib

def fast_import(stream)

def fast_import(stream)
  tmp = Tempfile.new("stream-file")
  tmp.write(stream.to_s)
  tmp.flush
  begin
    command('fast-import',"--date-format=rfc2822",true,"< #{escape tmp.path}")
  ensure
    tmp.close(true)
  end
end