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

index 3b12ce6..07c6897 100644 (file)
@@ -210,6 +210,10 @@ public class GitRepo : Object
     
     
     public string get_config(string key) {
+    
+       if (this.config_cache.has_key(key)) {
+               return this.config_cache.get(key);
+               }
        try {
                return  this.git({ "config" , "gitlive." + key });
        } catch (Error e) {