From: Alan Knowles Date: Tue, 30 Oct 2018 06:44:10 +0000 (+0800) Subject: GitRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=8cf2cb3a7c9859506586913a79846a3a6e17af29 GitRepo.vala --- diff --git a/GitRepo.vala b/GitRepo.vala index 4c1185fe..71fafbe3 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -140,11 +140,11 @@ public class GitRepo : Object public bool is_autocommit () { - return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.IS_DIR); + return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.IS_EXIST); } public bool is_autopush () { - return !FileUtils.test(this.gitdir + "/.gitlive-disable-autopush" , FileTest.IS_DIR); + return !FileUtils.test(this.gitdir + "/.gitlive-disable-autopush" , FileTest.IS_EXIST); } /** * add: