X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=GitRepo.vala;h=e02ae7b50aa34c667263c68e804a93a384afb55f;hp=99526b6ba0a1fc5585818785e4bad4999cf96643;hb=f60162b65b78eb68ef4193a8d83516ce0280c5ad;hpb=28ded760456a172ffd38be8c11fad713106ed384 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);