From e6189d5f12827376f6fef43f1dcc95c2a09b1a9c Mon Sep 17 00:00:00 2001 From: unglaublicherdude Date: Fri, 1 Mar 2024 12:39:26 +0100 Subject: [PATCH] fix var --- golang/vaas/cmd/git-scan/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golang/vaas/cmd/git-scan/main.go b/golang/vaas/cmd/git-scan/main.go index 8ae8821c..f12ce090 100644 --- a/golang/vaas/cmd/git-scan/main.go +++ b/golang/vaas/cmd/git-scan/main.go @@ -59,7 +59,7 @@ func main() { gitDiffCommand := exec.Command("git", "diff", "--name-only", targetBranch) diffBytes, err := gitDiffCommand.Output() if err != nil { - log.Fatal("git diff", err, string(gitDiffCommand)) + log.Fatal("git diff", err, string(diffBytes)) } files := strings.Split(strings.ReplaceAll(string(diffBytes), "\r\n", "\n"), "\n") if len(files) < 1 {