GitRepo.vala
[gitlive] / GitRepo.vala
index e0d87f9..fd202f8 100644 (file)
@@ -193,9 +193,11 @@ public class GitRepo : Object
     {
        // managed = 
        if (this.get_config("managed") == "") {
-               this.set_config("managed", this.host != "git.roojs.com" ? "1" : "0");
+               this.set_config("managed", this.host == "git.roojs.com" ? "1" : "0");
+               }
+       if (this.get_config("autocommit") == "") {
+               this.set_config("autocommit", this.host == "git.roojs.com" ? "1" : "0");
                }
-               
     
     }
     
@@ -217,6 +219,7 @@ public class GitRepo : Object
     
     public bool is_autocommit ()
     {          
+       
        return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.EXISTS);
     }
     public void set_autocommit(bool val)