From 42c01e37639686cd1723f91c10d7b58b1bc57f28 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 12:38:49 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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... } -- 2.39.2