Fix error codes that are sent to callbacks on git errors

When the gitc library functions are called, if they error out, they currently always call the callback with a value of 0 which means we can't detect if errors actually happened or not. This fixes it so we get a true or false value to the callback.