From bd802e5aa8113fe4a3551b8fef93316d6a40435a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 12:03:22 +0800 Subject: [PATCH 1/1] GitRepo.vala --- GitRepo.vala | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index e0d87f96..fd202f82 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -193,9 +193,11 @@ public class GitRepo : Object { // managed = if (this.get_config("managed") == "") { - this.set_config("managed", this.host != "git.roojs.com" ? "1" : "0"); + this.set_config("managed", this.host == "git.roojs.com" ? "1" : "0"); + } + if (this.get_config("autocommit") == "") { + this.set_config("autocommit", this.host == "git.roojs.com" ? "1" : "0"); } - } @@ -217,6 +219,7 @@ public class GitRepo : Object public bool is_autocommit () { + return !FileUtils.test(this.gitdir + "/.gitlive-disable-autocommit" , FileTest.EXISTS); } public void set_autocommit(bool val) -- 2.39.2