'Export the Git repository at the url to the destination location'

def export(self, location):

    temp_dir = tempfile.mkdtemp('-export', 'pip-')
    self.unpack(temp_dir)
    try:
        if (not location.endswith('/')):
            location = (location + '/')
        call_subprocess([self.cmd, 'checkout-index', '-a', '-f', '--prefix', location], filter_stdout=self._filter, show_stdout=False, cwd=temp_dir)
    finally:
        rmtree(temp_dir)
