Git.vala
[gitlive] / Git.vala
index 43872d4..435a34c 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -93,11 +93,15 @@ 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) {
+                               GLib.debug("test:%s", br.get_upstream().get_shorthand());
+                               if ("ref/heads/" + br.get_upstream().get_shorthand() == remote_name) {
                                        return br;
                                }
+                               
                        }
+                       GLib.debug("missing %s", remote_name);                  
                        return null;
                
                }