X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;h=d0bbe5da87c126c5e62197070dbe389e4d11b5e7;hp=c0374544851b1633f18a2ed5196884d8132b05db;hb=1c928547428df3309975f84b7259db545d0886bf;hpb=afaf25609edb53f9e4c143614e96ace158b88627 diff --git a/GitRepo.vala b/GitRepo.vala index c0374544..d0bbe5da 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -257,16 +257,14 @@ public class GitRepo : Object 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"); + + if (val) { + FileUtils.remove(this.gitdir + "/.gitlive-unmanaged" ); } else { - // it exists... - FileUtils.remove(this.gitdir + "/.gitlive-enable-auto-branch" ); + FileUtils.set_contents(this.gitdir + "/.gitlive-unmanaged" , "x"); + } + } public bool is_autopush ()