sync
authorAlan <alan@roojs.com>
Sat, 9 Mar 2019 04:39:40 +0000 (12:39 +0800)
committerAlan <alan@roojs.com>
Sat, 9 Mar 2019 04:39:40 +0000 (12:39 +0800)
Git.vala

index 408af71..8f9483a 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -1,5 +1,5 @@
 
-// valac -o /tmp/ggit Git.vala --pkg libgit2-glib-1.0 --pkg libsoup
+// valac -o /tmp/ggit Git.vala --pkg libgit2-glib-1.0 --pkg libsoup-2.4
 
 
 
@@ -65,10 +65,10 @@ namespace  GitLive {
                                }
                                var options = new Ggit.FetchOptions();
                                options.set_remote_callbacks(this.callbacks);
-                               yield Async.thread(() => {
+                               //yield Async.thread(() => {
        
                                        r.download(far, options);
-                               });
+                               //});
                                r.disconnect();
                                
                                //r.download(
@@ -102,7 +102,9 @@ namespace  GitLive {
                                        
                                }
                                var popts = new Ggit.PushOptions();
-                               r.upload(fars, popts);
+                               GLib.debug("Push?");
+                               r.upload(far, popts);
+                               GLib.debug("Push done?");
                                r.disconnect();