X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Git.vala;h=5737ac3babf156d8ce78f2dc01b2e881a59e858b;hb=fa1c473279bec4da328b59b9ef2da36408b1ee27;hp=7f4fb4a255b14f284981ac4f0c10931a87eb662c;hpb=e067f3f0f2b63464009bc47c43548c859d041a1c;p=gitlive diff --git a/Git.vala b/Git.vala index 7f4fb4a2..5737ac3b 100644 --- a/Git.vala +++ b/Git.vala @@ -93,10 +93,10 @@ namespace GitLive { } Ggit.Branch? getBranch(string remote_name, string remote_branch_name) { - GLib.debug("lookup %s", remote_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_name) { + if ("ref/heads/" + remote_name + br.get_upstream().get_shorthand() == remote_branch_name) { return br; }