GitRepo.vala
[gitlive] / 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...
        }