Beispiel #1
0
        protected override void CaptureRepoSize()
        {
            try
            {
                var gitSize = GitClient.CountObjects()
                              .Catch(_ => true)
                              .RunSynchronously();
                base.UpdateRepoSize(gitSize);

                var gitLfsDataPath = Environment.RepositoryPath.Combine(".git", "lfs");
                if (gitLfsDataPath.Exists())
                {
                    var lfsSize = new LinuxDiskUsageTask(gitLfsDataPath, TaskManager.Token)
                                  .Configure(ProcessManager)
                                  .Catch(_ => true)
                                  .RunSynchronously();
                    base.UpdateLfsDiskUsage(lfsSize);
                }
            }
            catch {}
        }