Skip to content

Commit 27f0afc

Browse files
authored
Merge pull request #159091 from rickystewart/blathers/backport-release-24.3-159081
release-24.3: codeowners: include gitignore'd files in test file lookup
2 parents cf26161 + aaa2c85 commit 27f0afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/internal/codeowners/codeowners.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func getFile(packageName, testName string) (res string, logs []string, err error
208208
return
209209
}
210210
cmd := exec.Command(`/bin/bash`, `-c`,
211-
fmt.Sprintf(`cd "$(git rev-parse --show-toplevel)" && git grep -n 'func %s(' '%s/*_test.go'`,
211+
fmt.Sprintf(`cd "$(git rev-parse --show-toplevel)" && git grep --no-index -n 'func %s(' '%s/*_test.go'`,
212212
testName, packageName))
213213
// This command returns output such as:
214214
// ../ccl/storageccl/export_test.go:31:func TestExportCmd(t *testing.T) {

0 commit comments

Comments
 (0)