5 GLib.Log.set_handler(null,
6 GLib.LogLevelFlags.LEVEL_DEBUG | GLib.LogLevelFlags.LEVEL_WARNING | GLib.LogLevelFlags.LEVEL_INFO,
18 var a = new GitLive.Repo("/home/alan/gitlive/web.Texon");
23 public class Repo : Object
27 public Repo (string path)
29 Git.Repository.open(out this.repo , path);
35 this.repo.get_remote_list(out remotes);
38 git_remote* remote = NULL;
39 git_remote_lookup( &remote, repository, "origin" );
42 git_remote_connect( remote, GIT_DIRECTION_PUSH )
45 git_remote_add_push( remote, "refs/heads/master:refs/heads/master" );
48 git_push_options options;
49 git_push_init_options( &options, GIT_PUSH_OPTIONS_VERSION );
52 git_remote_upload( remote, NULL, &options );
54 git_remote_free( remote );