Git.vala
[gitlive] / Git.vala
index b9639c3..35d77dd 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -69,7 +69,7 @@ namespace  GitLive {
                }
                
            Gee.ArrayList<Ggit.Branch>          branches = null;
-               void loadBranches()
+               public void loadBranches()
                {
                        this.branches =  new Gee.ArrayList<Ggit.Branch>();
                        var r = this.repo.enumerate_branches(Ggit.BranchType.LOCAL);
@@ -93,10 +93,12 @@ namespace  GitLive {
                }
                Ggit.Branch? getBranch(string remote_name)
                {
+                       GLib.debug("lookup %s", remote_name);
                        foreach(var br in this.branches) {
                                if (br.get_upstream().get_name() == remote_name) {
                                        return br;
                                }
+                               
                        }
                        return null;