Skip to content

Instantly share code, notes, and snippets.

View tail's full-sized avatar

Jason Yan tail

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tail on github.
  • I am tail (https://keybase.io/tail) on keybase.
  • I have a public key ASAGYPCjMQomUwY4pvyn1lr5v9v771_OOdoVXxurYJTKCgo

To claim this, I am signing this object:

import os
from time import time
from pygit2 import *
def do_foo():
# Create a Repository, add an Index, and create Reference.
os.system('rm -rf /tmp/pygit2test')
repo = init_repository('/tmp/pygit2test', False)
fp = open('/tmp/pygit2test/foo', 'w')
fp.write('Hello, world!')