From f423f28a43934ff9af9d1446b49d3451e8ccdd00 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 12:06:09 +0800 Subject: [PATCH 1/1] GitRepo.vala --- GitRepo.vala | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/GitRepo.vala b/GitRepo.vala index 1970bc4c..e9a2cb15 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -257,19 +257,7 @@ public class GitRepo : Object } public void set_autopush(bool val) { - - var cur = this.is_autopush(); - GLib.debug("SET auto push : %s <= %s", val ? "ON" : "OFF", cur ? "ON" : "OFF"); - if (cur == val) { - return; // no change.. - } - if (!val) { - FileUtils.set_contents(this.gitdir + "/.gitlive-disable-autopush" , ""); - } else { - // it exists... - FileUtils.remove(this.gitdir + "/.gitlive-disable-autopush" ); - } - + this.set_config("autopush", val ? "1" : "0"); } -- 2.39.2