X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;h=e0d87f96213c0f3e1cb220d4b875dd05ba9aef56;hp=36dca8a3187cea753e1afdc0e861a9252b465a58;hb=b22258477df29b833c0b1c4762b6b88051e89007;hpb=665284cd868b225f8d8876475898e36b3a722051 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"; }