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

index fd202f8..59633f3 100644 (file)
@@ -213,14 +213,12 @@ public class GitRepo : Object
     public bool is_managed()
     {
        return this.get_config("managed") == "1";
-
     }
     
     
     public bool is_autocommit ()
     {          
-       
-       return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.EXISTS);
+       return this.get_config("autocommit") == "1";            
     }
     public void set_autocommit(bool val)
     {