[libgit2-glib] Handle no-authentication case as passthrough



commit e070359f5ee8bd1a77aa7474d995acf14a94f7ba
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Wed Dec 24 10:01:34 2014 +0100

    Handle no-authentication case as passthrough

 libgit2-glib/ggit-remote-callbacks.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib/ggit-remote-callbacks.c b/libgit2-glib/ggit-remote-callbacks.c
index a15e999..5aebed4 100644
--- a/libgit2-glib/ggit-remote-callbacks.c
+++ b/libgit2-glib/ggit-remote-callbacks.c
@@ -157,9 +157,13 @@ credentials_wrap (git_cred     **cred,
                        {
                                giterr_set_str (GIT_ERROR, error->message);
                                g_error_free (error);
-                       }
 
-                       return GIT_ERROR;
+                               return GIT_ERROR;
+                       }
+                       else
+                       {
+                               return GIT_PASSTHROUGH;
+                       }
                }
        }
        else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]