From: Alan Knowles Date: Wed, 19 Dec 2018 04:38:49 +0000 (+0800) Subject: GitRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=42c01e37639686cd1723f91c10d7b58b1bc57f28 GitRepo.vala --- diff --git a/GitRepo.vala b/GitRepo.vala index eb3ef0e3..3fb759c9 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -215,8 +215,12 @@ public class GitRepo : Object return this.config_cache.get(key); } try { - return this.git({ "config" , "gitlive." + key }); + var ret = this.git({ "config" , "gitlive." + key }); + this.config_cache.set(key, ret); + return ret; } catch (Error e) { + this.config_cache.set(key, ""); + return ret; return ""; // happens when there is nothing set... }