X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;h=c0374544851b1633f18a2ed5196884d8132b05db;hp=4ce43e5744d7124ca445122ec4a9a5613e1c5203;hb=afaf25609edb53f9e4c143614e96ace158b88627;hpb=059157afad5e2225565bb482a3ea3cec307964c0 diff --git a/GitRepo.vala b/GitRepo.vala index 4ce43e57..c0374544 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -247,6 +247,20 @@ public class GitRepo : Object if (cur == val) { return; // no change.. } + if (this.host != "git.roojs.com") { // we can only push to this url. -- unless we have forced it to be managed. + // remote is not our server.. + if (val) { + FileUtils.set_contents(this.gitdir + "/.gitlive-managed" , "x"); + } else { + FileUtils.remove(this.gitdir + "/.gitlive-managed" ); + } + return; + + } + // otherwise see if unmanaged is set to disable it.. + return !FileUtils.test(this.gitdir + "/.gitlive-unmanaged" , FileTest.EXISTS); + + if (val) { FileUtils.set_contents(this.gitdir + "/.gitlive-enable-auto-branch" , "x"); } else {