mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 08:57:40 +00:00
remove unused
This commit is contained in:
parent
a07ffbef72
commit
44f080a5ef
1 changed files with 0 additions and 10 deletions
|
@ -686,16 +686,6 @@ func setupTempGitRepoCommon(t *testing.T, fileName string, fileSize int, isUnsup
|
|||
return tempDir
|
||||
}
|
||||
|
||||
// getGitCommitHash retrieves the current commit hash of the Git repository.
|
||||
func getGitCommitHash(t *testing.T, gitDir string) string {
|
||||
t.Helper()
|
||||
cmd := exec.Command("git", "-C", gitDir, "rev-parse", "HEAD")
|
||||
hashBytes, err := cmd.Output()
|
||||
assert.NoError(t, err, "Failed to get commit hash")
|
||||
commitHash := strings.TrimSpace(string(hashBytes))
|
||||
return commitHash
|
||||
}
|
||||
|
||||
type mockReporter struct{ reportedChunks int }
|
||||
|
||||
func (m *mockReporter) ChunkOk(logContext.Context, sources.Chunk) error {
|
||||
|
|
Loading…
Reference in a new issue