Git.vala
[gitlive] / Git.vala
index 35d77dd..c0d218b 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -95,11 +95,12 @@ namespace  GitLive {
                {
                        GLib.debug("lookup %s", remote_name);
                        foreach(var br in this.branches) {
-                               if (br.get_upstream().get_name() == remote_name) {
+                               if ("ref/heads/" + br.get_upstream().get_shorthand() == remote_name) {
                                        return br;
                                }
                                
                        }
+                       GLib.debug("missing %s", remote_name);                  
                        return null;
                
                }