0 if you don't want an error message , 1 if you want an error message.

See [this](https://github.com/libgit2/libgit2/blob/development/src/remote.c#L1448),