- far += ("+refs/heads/" + br.name + ":refs/remotes/" + br.remote);
- }
- if (far.length > 0) {
- var r = this.repo.lookup_remote("origin");
- r.connect(Ggit.Direction.FETCH, new GitCallbacks, null, null);
- var options = new Ggit.FetchOptions();
- //options.set_remote_callbacks(this.callbacks);
- r.download(far, options);
- }
- repo.loadStatus();
+ if (far.length > 0) {
+ var r = this.repo.lookup_remote("origin");
+ r.connect(Ggit.Direction.FETCH, new GitCallbacks, null, null);
+ var options = new Ggit.FetchOptions();
+ //options.set_remote_callbacks(this.callbacks);
+ r.download(far, options);
+ }
+ repo.loadStatus();
+
+
+ Idle.add((owned) callback);
+ return true;
+
+ };
+ new Thread<bool>("thread-new-gitrepo", run);
+ yield;
+ return ret;
+
+