[libgit2-glib] Fix error set



commit 6e01869ba21d0323d074a40234c507658cdb3691
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Mar 31 23:33:59 2013 +0200

    Fix error set

 libgit2-glib/ggit-branch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgit2-glib/ggit-branch.c b/libgit2-glib/ggit-branch.c
index 15cacb7..82c48cd 100644
--- a/libgit2-glib/ggit-branch.c
+++ b/libgit2-glib/ggit-branch.c
@@ -195,7 +195,7 @@ ggit_branch_is_head (GgitBranch  *branch,
 
        ret = git_branch_is_head (_ggit_native_get (branch));
 
-       if (ret > 1)
+       if (ret < 0)
        {
                _ggit_error_set (error, ret);
        }


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