Skip to content

Commit 5b845ce

Browse files
authored
Merge pull request #43 from crosbymichael/exclude
Skip empty excludes
2 parents e7e08e6 + efe06dd commit 5b845ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git/commits.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ func Check(commit string) ([]byte, error) {
108108
if gitNewEnough {
109109
excludeList := strings.Split(excludeEnvList, ":")
110110
for _, exclude := range excludeList {
111+
if exclude == "" {
112+
continue
113+
}
111114
args = append(args, "--", ".", fmt.Sprintf(":(exclude)%s", exclude))
112115
}
113116
}

0 commit comments

Comments
 (0)