private void ProcessOnePack(ParsedReceivePack receivePack, GitExecutionResult result)
 {
     next.PostPackReceive(receivePack, result);
     
     var packFilePath = recoveryFilePathBuilder.GetPathToPackFile(receivePack);
     if (File.Exists(packFilePath))
     {
         File.Delete(packFilePath);
     }
 }
        public void PostPackReceive(ParsedReceivePack receivePack, GitExecutionResult result)
        {
            Console.WriteLine("PostPackReceive {0}, {1}", receivePack, result);
            next.PostPackReceive(receivePack, result);

            if (result.HasError)
            {
                return;
            }

            var repo = repoConfig.GetRepository(receivePack.RepositoryName);
            if (repo.AuditPushUser == true)
            {
                var user = receivePack.PushedByUser;
                var email = "";
                if (string.IsNullOrEmpty(user))
                {
                    user = EMPTY_USER;
                } else {
                    var userData = userRepo.GetUser(user);
                    if(userData != null) {
                        email = userData.Email;
                    }
                }

                var gitRepo = new Repository(repoLocator.GetRepositoryDirectoryPath(receivePack.RepositoryName).FullName);
                foreach (var commit in receivePack.Commits)
                {
                    gitRepo.Notes.Add(
                        new ObjectId(commit.Id),
                        user,
                        new Signature(user, email, DateTimeOffset.Now),
                        new Signature(user, email, DateTimeOffset.Now),
                        "pusher");
                }
            }            
        }
 public void PostPackReceive(ParsedReceivePack receivePack, GitExecutionResult result)
 {
     // do nothing
 }
 public void PostPackReceive(ParsedReceivePack receivePack, GitExecutionResult result)
 {
     ProcessOnePack(receivePack, result);
     RecoverAll();
 }