diff --git a/src/tl/tl/tlGit.cc b/src/tl/tl/tlGit.cc index 5573b199d..47a3f4674 100644 --- a/src/tl/tl/tlGit.cc +++ b/src/tl/tl/tlGit.cc @@ -260,8 +260,13 @@ credentials_cb (git_cred ** /*out*/, const char * /*url*/, const char * /*userna #endif { // no credentials aquired +#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR >= 28) git_error_set_str (GIT_ERROR_NONE, "anonymous access is supported only, but server requests credentials"); +#else + git_error_set_str (GITERR_NONE, "anonymous access is supported only, but server requests credentials"); +#endif return GIT_EUSER; + } void