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