From ab44c9e3d4146ac95a61c0153ad7c0f958c4f39c Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 13 Mar 2019 15:09:21 +0800 Subject: [PATCH] Git.vala --- Git.vala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Git.vala b/Git.vala index 2aabd962..d7139c2e 100644 --- a/Git.vala +++ b/Git.vala @@ -93,15 +93,15 @@ namespace GitLive { } Ggit.Branch? getBranch(string remote_name, string remote_branch_name) { - GLib.debug("lookup %s:%s", remote_name, remote_branch_name); + //GLib.debug("lookup %s:%s", remote_name, remote_branch_name); foreach(var br in this.branches) { - GLib.debug("test:%s", br.get_upstream().get_shorthand()); - if ("ref/heads/" + remote_name + "/" + br.get_upstream().get_shorthand() == remote_branch_name) { + GLib.debug("test:%s=%s", remote_name + "/" + br.get_upstream().get_shorthand() , remote_branch_name); + if (remote_name + "/" + br.get_upstream().get_shorthand() == remote_branch_name) { return br; } } - GLib.debug("missing %s", remote_branch_name); + //GLib.debug("missing %s", remote_branch_name); return null; } -- 2.39.2