);
Ggit.init();
- var a = new GitLive.Repo("/home/alan/gitlive/web.Texon");
+ var a = new GitLive.Repo("/home/alan/gitlive/gitlive");
a.fetchAll();
a.pushAll();
}
GLib.debug("Got Error Message: %s", e.message);
return;
}
- GLib.debug("getting specs '%s'", n);
-
-
+ //GLib.debug("getting specs '%s'", n);
+
+ var head = this.repo.get_head();
+ this.repo.add_remote_push(
+ "origin",
+ "+%s:%s".printf(head.get_shorthand(),head.get_name())
+ );
+
var far = r.get_push_specs();
foreach(var rs in far) {
GLib.debug("got remote spec: %s", rs);
}
+
var popts = new Ggit.PushOptions();
+ //popts.callbacks = this.callbacks;
GLib.debug("Push?");
- r.upload(far, popts);
+ r.upload(null,popts);
GLib.debug("Push done?");
r.disconnect();
var lines = str.split("\n");
for(var i=0; i< lines.length; i++) {
// assumes one line per entry.. if not we are buggered...
- GLib.debug("got %s" , lines[i]);
+ //GLib.debug("got %s" , lines[i]);
var bits = Regex.split_simple ("[ \t]+", lines[i].strip());
if (bits.length < 6 || bits[0] != "machine" || bits[1] != domain) {