From 1f841ca629cce414be277f436f1f174b4eb7eb2d Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 13 Nov 2023 13:05:44 +0100 Subject: [PATCH] Removes modified/clean indicator --- Tests/DistTestCore/GitInfo.cs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Tests/DistTestCore/GitInfo.cs b/Tests/DistTestCore/GitInfo.cs index 51f8bbf..a742d4b 100644 --- a/Tests/DistTestCore/GitInfo.cs +++ b/Tests/DistTestCore/GitInfo.cs @@ -20,23 +20,9 @@ namespace DistTestCore if (path == null) return "unknown"; using var repo = new Repository(path); - var isModified = repo.RetrieveStatus().Any(IsModified); var sha = repo.Head.Tip.Sha.Substring(0, 7); - return K8sNameUtils.Format(sha + (isModified ? "_modified" : "_clean")); - } - - private static bool IsModified(StatusEntry e) - { - return e.State == FileStatus.ModifiedInIndex || - e.State == FileStatus.NewInIndex || - e.State == FileStatus.RenamedInIndex || - e.State == FileStatus.DeletedFromIndex || - - e.State == FileStatus.ModifiedInWorkdir || - e.State == FileStatus.NewInWorkdir || - e.State == FileStatus.RenamedInWorkdir || - e.State == FileStatus.DeletedFromWorkdir; + return K8sNameUtils.Format(sha); } private static string? FindGitPath()