From f60162b65b78eb68ef4193a8d83516ce0280c5ad Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 12:02:03 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/GitRepo.vala b/GitRepo.vala index 99526b6b..e02ae7b5 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -189,6 +189,16 @@ public class GitRepo : Object return this.currentBranch.name == "master" || this.currentBranch.name == "roojs"; } + public void init_config() + { + // managed = + if (this.get_config("managed") == "") { + this.set_config("managed", this.host != "git.roojs.com" ? "1" : "0"; + } + + } + + public string get_config(string key) { return this.git({ "config" , "gitlive." + key); -- 2.39.2