You can check or not, if it's an empty string, you should get an error from libgit2 anyway.