Git.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 07:16:45 +0000 (15:16 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 07:16:45 +0000 (15:16 +0800)
Git.vala

index ed4bc6d..057effe 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -296,8 +296,12 @@ namespace  GitLive {
                        this.remote_heads = r.list();
                        
                        foreach(var br in this.remote_heads) {
+                               if (!rn.has_prefix("refs/heads/")) {
+                                       continue;
+                               }
+                               
                                GLib.debug("Remote: name=%s  oid=%s local_oid=%s is_local=%s",
-                                       br.get_name(),
+                                       br.get_name().substring(12),
                                        br.get_oid().to_string(),
                                        br.get_local_oid().to_string(),
                                        br.is_local() ? "Y" : "n"