Пример #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);
                }
            }
        }
Пример #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);
				}
			}
		}