updated nodegit to v0.2 & updated the code