From df2cd8eeda497b41b99cff93036f9d4ae9aec0c9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 12:05:53 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index 951a46f5..1970bc4c 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -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) { -- 2.39.2