feat: repo health check (#16) #17

Merged
张泊明518370910136 merged 37 commits from file_check into master 2024-09-11 20:09:27 +08:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 04127c5b12 - Show all commits

@ -1 +1 @@
Subproject commit ff1d788beeae458682296c77ea759ad6b0313c01
Subproject commit a0a9a6a629d48179fb2647027e5fadad242b2601

View File

@ -66,7 +66,7 @@ func ForbiddenCheck(rootDir string, regexList []string, repo string, droneBranch
strings.Join(forbids, ", ") +
"\n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in " +
strings.Join(forbids, " ") +
fmt.Sprint("; do git filter-repo --force --invert-paths --path \\\"\\$i\\\"; done\ngit remote add origin ",
fmt.Sprint("; do git filter-repo --force --invert-paths --path \"$i\"; done\ngit remote add origin ",
repo, "\ngit push --set-upstream origin ", droneBranch, " --force")
return fmt.Errorf(message)
}