this.repo = Ggit.Repository.open(GLib.File.new_for_path(path));
- var r = this.repo.lookup_remote("origin");
+ //var r = this.repo.lookup_remote("origin");
//var r = this.git({ "remote" , "get-url" , "--push" , "origin"});
- var uri = new Soup.URI(r.get_url());
- this.host = uri.get_host();
+ //var uri = new Soup.URI(r.get_url());
+ //this.host = uri.get_host();
this.init_config();
this.loadBranches();
var options = new Ggit.FetchOptions();
options.set_remote_callbacks( new GitCallbacks(this));
r.download(far, options);
+ r.disconnect();
}
this.loadStatus();
var cb = new GitCallbacks(this);
r.connect(Ggit.Direction.FETCH, cb, null, null);
this.remote_heads = r.list();
+ r.disconnect();
}