Beispiel #1
0
        public void UpdateServerInfo()
        {
            using (var rep = GetRepository()) {
                if (rep.ObjectDatabase is ObjectDirectory)
                {
                    RefWriter rw = new SimpleRefWriter(rep, rep.getAllRefs().Values);
                    rw.writePackedRefs();
                    rw.writeInfoRefs();

                    var packs = GetPackRefs(rep);
                    WriteInfoPacks(packs, rep);
                }
            }
        }
Beispiel #2
0
        public void UpdateServerInfo()
        {
            using (var rep = GetRepository()) {
                if (rep.ObjectDatabase is ObjectDirectory) {
                    RefWriter rw = new SimpleRefWriter(rep, rep.getAllRefs().Values);
                    rw.writePackedRefs();
                    rw.writeInfoRefs();

                    var packs = GetPackRefs(rep);
                    WriteInfoPacks(packs, rep);
                }
            }
        }