}
Ggit.Branch? getBranch(string remote_name)
{
+ GLib.debug("lookup %s", remote_name);
foreach(var br in this.branches) {
- if (br.get_upstream().get_name() == remote_name) {
+ GLib.debug("test:%s", br.get_upstream().get_shorthand());
+ if ("ref/heads/" + br.get_upstream().get_shorthand() == remote_name) {
return br;
}
+
}
+ GLib.debug("missing %s", remote_name);
return null;
}