X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Git2.vala;h=1f5ccac37c88b6b59c6cb747377a6618329c26a9;hb=a5f3164a88d66fcd07d9e8cab9aefb73d0acd5ed;hp=5f8e42b84d4a499067f91cfd59e1a333eb8fd2f7;hpb=6a4f75ba7417d439b3fedb61776f25eb51b2a409;p=gitlive diff --git a/Git2.vala b/Git2.vala index 5f8e42b8..1f5ccac3 100644 --- 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" );