mirror of
https://github.com/vbatts/git-validation.git
synced 2024-11-22 16:15:40 +00:00
commit
5b845cee79
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ func Check(commit string) ([]byte, error) {
|
||||||
if gitNewEnough {
|
if gitNewEnough {
|
||||||
excludeList := strings.Split(excludeEnvList, ":")
|
excludeList := strings.Split(excludeEnvList, ":")
|
||||||
for _, exclude := range excludeList {
|
for _, exclude := range excludeList {
|
||||||
|
if exclude == "" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
args = append(args, "--", ".", fmt.Sprintf(":(exclude)%s", exclude))
|
args = append(args, "--", ".", fmt.Sprintf(":(exclude)%s", exclude))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue