From b22258477df29b833c0b1c4762b6b88051e89007 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 12:02:44 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index 36dca8a3..e0d87f96 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -210,15 +210,7 @@ public class GitRepo : Object public bool is_managed() { - // is it a roojs origin? - - if (this.host != "git.roojs.com") { // we can only push to this url. -- unless we have forced it to be managed. - var r = this.git({ "config" , "gitlive.managed"); - - return FileUtils.test(this.gitdir + "/.gitlive-managed" , FileTest.EXISTS); - } - // otherwise see if unmanaged is set to disable it.. - return !FileUtils.test(this.gitdir + "/.gitlive-unmanaged" , FileTest.EXISTS); + return this.get_config("managed") == "1"; } -- 2.39.2