'Export the content of a Git repository to the specified directory.
@type fromDir: L{twisted.python.filepath.FilePath}
@param fromDir: The path to the Git repository to export.
@type exportDir: L{twisted.python.filepath.FilePath}
@param exportDir: The directory to export the content of the
repository to. This directory doesn\'t have to exist prior to
exporting the repository.'

@staticmethod
def exportTo(fromDir, exportDir):

    runCommand(['git', '-C', fromDir.path, 'checkout-index', '--all', '--force', '--prefix', (exportDir.path + '/')])
