Skip to content

Commit

Permalink
Stage updated .talismanrc file after Interactive Mode Prompt (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcRUSTy committed Oct 1, 2020
1 parent d54beb6 commit 3f33927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions detector/helpers/detection_results.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"log"
"os"
"os/exec"
"runtime"
"strings"
"talisman/detector/severity"
Expand Down Expand Up @@ -319,6 +320,7 @@ func (r *DetectionResults) suggestTalismanRC(filePaths []string, promptContext p
if promptContext.Interactive && runtime.GOOS != "windows" {
confirmedEntries := getUserConfirmation(entriesToAdd, promptContext)
talismanrc.Get().AddFileIgnores(confirmedEntries)
exec.Command("git", "add", ".talismanrc").CombinedOutput()
} else {
printTalismanIgnoreSuggestion(entriesToAdd)
return
Expand Down

0 comments on commit 3f33927

Please sign in to comment.