parameters: (self, location)
docstring: Export the Git repository at the url to the destination location
docstring_summary: Export the Git repository at the url to the destination location
docstring_tokens: Export the Git repository at the url to the destination location
function: def export(self, location):
          """Export the Git repository at the url to the destination location"""
          temp_dir = tempfile.mkdtemp('-export', 'pip-')
          self.unpack(temp_dir)
          try:
              if not location.endswith('/'):
                  location = location + '/'
              self.run_command(
                  ['checkout-index', '-a', '-f', '--prefix', location],
                  show_stdout=False, cwd=temp_dir)
          finally:
              rmtree(temp_dir)
function_tokens: def export ( self , location ) : temp_dir = tempfile . mkdtemp ( '-export' , 'pip-' ) self . unpack ( temp_dir ) try : if not location . endswith ( '/' ) : location = location + '/' self . run_command ( [ 'checkout-index' , '-a' , '-f' , '--prefix' , location ] , show_stdout = False , cwd = temp_dir ) finally : rmtree ( temp_dir )