Git.vala
authorAlan Knowles <alan@roojs.com>
Mon, 11 Mar 2019 07:39:07 +0000 (15:39 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 11 Mar 2019 07:39:07 +0000 (15:39 +0800)
Git.vala

index 7e7ce98..6ce0450 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -25,7 +25,9 @@ void main()
                GLib.DateTime.now_utc().format("%Y-%m-%d %H:%M:%S")
        );
        // mmh.. no git add/commit in library...
-       Process.spawn_command_line_sync ("ls");
+       string[] spawn_args = {"git", "commit", "-m", "test", "-a"};
+       string[] spawn_env = Environ.get ();
+       Process.spawn_sync ("/home/alan/git/test2", spawn_args, spawn_env, SpawnFlags.SEARCH_PATH, null);
 
        
        a.pushAll();