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

index 99526b6..e02ae7b 100644 (file)
@@ -189,6 +189,16 @@ public class GitRepo : Object
        return this.currentBranch.name == "master" || this.currentBranch.name == "roojs";
                
     }
+    public void init_config()
+    {
+       // managed = 
+       if (this.get_config("managed") == "") {
+               this.set_config("managed", this.host != "git.roojs.com" ? "1" : "0";
+               }
+    
+    }
+    
+    
     
     public string get_config(string key) {
        return this.git({ "config" , "gitlive." + key);