From: Alan Knowles Date: Wed, 19 Dec 2018 04:02:03 +0000 (+0800) Subject: GitRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=f60162b65b78eb68ef4193a8d83516ce0280c5ad GitRepo.vala --- 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);