From 1c928547428df3309975f84b7259db545d0886bf Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 11:54:32 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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 () -- 2.39.2