MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / CloneWiki

Function CloneWiki

site/source/get_wiki.py:63–78  ·  view source on GitHub ↗

Clone the wiki into a temporary location (first cleaning).

()

Source from the content-addressed store, hash-verified

61
62
63def CloneWiki():
64 """Clone the wiki into a temporary location (first cleaning)."""
65 # Clean up existing repo
66 CleanWiki()
67
68 # Create directory for output and temporary files
69 try:
70 os.makedirs(output_dir)
71 print('Created directory')
72 except OSError:
73 pass
74
75 # Clone
76 git_clone_command = 'git clone %s %s' % (wiki_repo, wiki_checkout)
77 print(git_clone_command)
78 os.system(git_clone_command)
79
80
81def ConvertFilesToRst():

Callers 1

mainFunction · 0.85

Calls 2

CleanWikiFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected