Looks like I was following the examples in nodegit a little too closely!