Git2.vala
authorAlan Knowles <alan@roojs.com>
Thu, 7 Mar 2019 09:49:17 +0000 (17:49 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 7 Mar 2019 09:49:17 +0000 (17:49 +0800)
Git2.vala

index 5f8e42b..1f5ccac 100644 (file)
--- a/Git2.vala
+++ b/Git2.vala
@@ -26,18 +26,15 @@ namespace  GitLive {
                
                public Repo (string path)
                {
-                       Git.Repository.open(this.repo , path);
+                       Git.Repository.open(out this.repo , path);
                }
                
-               
-               
-
-
-bool push(git_repository *repository) 
- {
-     
-     git_repository* repository;
-     // get the remote.
+               public void push()
+               {
+               string_array remotes;
+               this.repo.get_remote_list(out remotes);
+               
+        // get the remote.
      git_remote* remote = NULL;
      git_remote_lookup( &remote, repository, "origin" );