//var rhead = this.repo.revparse(br.get_upstream().get_name() ).get_id();
GLib.debug("got branch: H=%s name = %s upstream = %s oid = %s ",
br.is_head() ? "Y" : "n",
- br.get_name(), br.get_upstream().get_name(),
+ br.get_name(),
+ br.get_upstream().get_name().substring(20),
br.get_target().to_string());
this.branches.add(br);
if (br.is_head()) {
this.remote_heads = r.list();
foreach(var br in this.remote_heads) {
- if (!rn.has_prefix("refs/heads/")) {
+ if (!br.get_name().has_prefix("refs/heads/")) {
continue;
}
GLib.debug("Remote: name=%s oid=%s local_oid=%s is_local=%s",
- br.get_name().substring(12),
+ br.get_name().substring(11),
br.get_oid().to_string(),
br.get_local_oid().to_string(),
br.is_local() ? "Y" : "n"
}
}
-
-
+
Ggit.Branch? getBranch(string remote_name, string remote_branch_name)
{
br == null ? "?": this.repo.revparse(br.get_name() ).get_id().to_string()
);
*/
- var loc_oid = this.repo.revparse(br.get_name() ).get_id();
+ //var loc_oid = this.repo.revparse(br.get_name() ).get_id();
+
+ var loc_oid = br.get_target();
+
size_t ahead, behind;
this.repo.get_ahead_behind(
loc_oid,