Git.vala
authorAlan Knowles <alan@roojs.com>
Wed, 13 Mar 2019 07:05:03 +0000 (15:05 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 13 Mar 2019 07:05:03 +0000 (15:05 +0800)
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;
                                }