From 8cf2cb3a7c9859506586913a79846a3a6e17af29 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 14:44:10 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.2