GitRepo bugfixes

I was doing tests for pynag.Utils and ran into a couple of bugs in GitRepo.... so bugfix and tests included :)