X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;fp=GitRepo.vala;h=e3a72949b2fa92c9e0ca3da6607011039efc7e21;hp=fa5ce1a7c17332072d2ae81d70e7035a78f57913;hb=7f173a17ed57f133fa4985f18ce645d1fd957f1d;hpb=ce0a9ed7cbde853bab1ba31d0a14fd0a73d7578c diff --git a/GitRepo.vala b/GitRepo.vala index fa5ce1a7..e3a72949 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -218,12 +218,12 @@ public class GitRepo : Object 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(); @@ -1014,6 +1014,7 @@ public class GitRepo : Object var options = new Ggit.FetchOptions(); options.set_remote_callbacks( new GitCallbacks(this)); r.download(far, options); + r.disconnect(); } this.loadStatus(); @@ -1137,6 +1138,7 @@ public class GitRepo : Object var cb = new GitCallbacks(this); r.connect(Ggit.Direction.FETCH, cb, null, null); this.remote_heads = r.list(); + r.disconnect(); }