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

index 951a46f..1970bc4 100644 (file)
@@ -253,8 +253,7 @@ public class GitRepo : Object
     }
     public bool is_autopush ()
     {
-       
-       return !FileUtils.test(this.gitdir + "/.gitlive-disable-autopush" , FileTest.EXISTS);
+       return this.get_config("autopush") == "1";
     }
     public void set_autopush(bool val)
     {