From 49bbc5be93d8807ef68944ba97abe4fdf8303ae5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 25 Sep 2017 11:21:19 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index c570d774..1e02be0b 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -386,14 +386,13 @@ public class GitRepo : Object var cfg = new SpawnConfig(this.git_working_dir , args , env); cfg.async = true; - cfg.onFinish((err) { - this. - }); + // may throw error... var sp = new Spawn(cfg); - - + cfg.onFinish((err) { + cb(sp.output); + }); stdout.printf( "GOT: %s\n" , sp.output); // parse output for some commands ? return sp.output; -- 2.39.2