Ejemplo n.º 1
0
        public void Update(RepositoryConfig rc)
        {
            var vlst = new List<string>();

            vlst.Clear();
            foreach (URIish u in URIs)
            {
                vlst.Add(u.ToPrivateString());
            }
            rc.setStringList(Section, Name, KeyUrl, vlst);

            vlst.Clear();
            foreach (URIish u in PushURIs)
                vlst.Add(u.ToPrivateString());
            rc.setStringList(Section, Name, KeyPushurl, vlst);

            vlst.Clear();
            foreach (RefSpec u in Fetch)
            {
                vlst.Add(u.ToString());
            }
            rc.setStringList(Section, Name, KeyFetch, vlst);

            vlst.Clear();
            foreach (RefSpec u in Push)
            {
                vlst.Add(u.ToString());
            }
            rc.setStringList(Section, Name, KeyPush, vlst);

            Set(rc, KeyUploadpack, UploadPack, DEFAULT_UPLOAD_PACK);
            Set(rc, KeyReceivepack, ReceivePack, DEFAULT_RECEIVE_PACK);
            Set(rc, KeyTagopt, TagOpt.Option, TagOpt.AUTO_FOLLOW.Option);
            Set(rc, KeyMirror, Mirror, DefaultMirror);
            Set(rc, KeyTimeout, Timeout, 0);
        }