From: Alan Knowles Date: Wed, 19 Dec 2018 04:02:44 +0000 (+0800) Subject: GitRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=b22258477df29b833c0b1c4762b6b88051e89007 GitRepo.vala --- 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"; }