import os
import subprocess

src = os.path.join(os.getcwd(), 'src', 'utils', 'prepare-commit-msg.py')
dst = os.path.join('.git', 'hooks', 'prepare-commit-msg')

process = subprocess.call(['git', 'init'])
os.symlink(src, dst)

import os
import subprocess

src = os.path.join(os.getcwd(), 'src', 'utils', 'prepare-commit-msg.py')
dst = os.path.join('.git', 'hooks', 'prepare-commit-msg')

subprocess.call(['git', 'init'])
os.symlink(src, dst)
subprocess.call(['git', 'add', '-A'])
subprocess.call(['git', 'commit', '-m', 'Initial commit'])

Add inital commit to post generate hook
Add inital commit to post generate hook
