From d775766ccee699b62b62ef76219b9e62c1d9965a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 20 Mar 2019 15:16:45 +0800 Subject: [PATCH] Git.vala --- Git.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Git.vala b/Git.vala index ed4bc6dc..057effeb 100644 --- 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" -- 2.39.2