8 config
= configparser
.RawConfigParser()
9 config
.read(os
.path
.dirname(os
.path
.realpath(__file__
)) + "/../../conf/config")
11 template_path
= config
.get('serve', 'template-path')
12 git_update_hook
= config
.get('serve', 'git-update-hook')
15 sys
.stderr
.write("%s\n" % (msg
))
18 if os
.path
.exists(template_path
):
19 shutil
.rmtree(template_path
)
21 os
.mkdir(template_path
)
22 os
.chdir(template_path
)
26 os
.symlink(git_update_hook
, template_path
+ 'hooks/update')
28 with
open("description", 'w') as f
:
29 f
.write("Unnamed repository; push to update the description.\n")