Git.vala
authorAlan Knowles <alan@roojs.com>
Thu, 7 Mar 2019 07:55:45 +0000 (15:55 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 7 Mar 2019 07:55:45 +0000 (15:55 +0800)
Git.vala

index 1b251e9..dc686f6 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -54,8 +54,7 @@ namespace  Git {
                                        return;
                                }
                                GLib.debug("getting specs '%s'", n);
-                               var options = new Ggit.FetchOptions();
-                               options.set_remote_callbacks(this.callbacks);
+
 
                                var far = r.get_fetch_specs();
                                
@@ -63,7 +62,9 @@ namespace  Git {
                                        GLib.debug("got remote spec: %s", rs);
                                        
                                }
-                               r.download(far,
+                               var options = new Ggit.FetchOptions();
+                               options.set_remote_callbacks(this.callbacks);
+                               r.download(far, options);