branches.get(rname).name = lname;
}
-
+ /*
+ this bit of the code tries to turn a local branch into a track of a remote one.
+ -- that's probably not a good idea.
var r_replace = new Regex("^remotes/");
var o_replace = new Regex("^origin/");
foreach(var r in remotes.values) {
var name = r_replace.replace(r.name, r.name.length,0, "");
name = o_replace.replace(name, name.length,0, "");
name = name.replace("/", ".");
-
+
}
-
- repo.branches = branches;
+ */
+ repo.branches = local;