GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 04:38:49 +0000 (12:38 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 04:38:49 +0000 (12:38 +0800)
GitRepo.vala

index eb3ef0e..3fb759c 100644 (file)
@@ -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...
        }