Git.vala
[gitlive] / Git.vala
index 7f4fb4a..5737ac3 100644 (file)
--- 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;
                                }