public override void UpdateServerInfo()
        {
            using (var rep = GetRepository())
            {
                var repo = (FileRepository)rep;
                if (repo.ObjectDatabase is ObjectDirectory)
                {
                    NGitRefWriter rw = new NGitBasedSimpleRefWriter(repo, repo.GetAllRefs().Values);
                    rw.WritePackedRefs();
                    rw.WriteInfoRefs();

                    var packs = GetPackRefs(rep);
                    WriteInfoPacks(packs, rep);
                }
            }
        }
        public override void UpdateServerInfo()
        {
            using (var rep = GetRepository())
            {
                var repo = (FileRepository)rep;
                if (repo.ObjectDatabase is ObjectDirectory)
                {
                    NGitRefWriter rw = new NGitBasedSimpleRefWriter(repo, repo.GetAllRefs().Values);
                    rw.WritePackedRefs();
                    rw.WriteInfoRefs();

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