mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-24 03:49:45 +00:00
pkg/report: use --git-min-percent=15 for get_maintainer.pl
Update #1441
This commit is contained in:
parent
c2c19edbcd
commit
f9f80dd437
@ -449,12 +449,14 @@ func (ctx *linux) getMaintainers(file string) ([]string, error) {
|
||||
}
|
||||
|
||||
func (ctx *linux) getMaintainersImpl(file string, blame bool) ([]string, error) {
|
||||
args := []string{"--no-n", "--no-rolestats"}
|
||||
// See #1441 re --git-min-percent.
|
||||
args := []string{"--no-n", "--no-rolestats", "--git-min-percent=15"}
|
||||
if blame {
|
||||
args = append(args, "--git-blame")
|
||||
}
|
||||
args = append(args, "-f", file)
|
||||
output, err := osutil.RunCmd(time.Minute, ctx.kernelSrc, filepath.FromSlash("scripts/get_maintainer.pl"), args...)
|
||||
script := filepath.FromSlash("scripts/get_maintainer.pl")
|
||||
output, err := osutil.RunCmd(time.Minute, ctx.kernelSrc, script, args...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ func (ctx *linux) Bisect(bad, good string, trace io.Writer, pred func() (BisectR
|
||||
}
|
||||
|
||||
func (ctx *linux) addMaintainers(com *Commit) {
|
||||
if len(com.CC) > 3 {
|
||||
if len(com.CC) > 2 {
|
||||
return
|
||||
}
|
||||
list := ctx.getMaintainers(com.Hash, false)
|
||||
@ -195,8 +195,10 @@ func (ctx *linux) addMaintainers(com *Commit) {
|
||||
}
|
||||
|
||||
func (ctx *linux) getMaintainers(hash string, blame bool) []string {
|
||||
// See #1441 re --git-min-percent.
|
||||
args := "git show " + hash + " | " +
|
||||
filepath.FromSlash("scripts/get_maintainer.pl") + " --no-n --no-rolestats"
|
||||
filepath.FromSlash("scripts/get_maintainer.pl") +
|
||||
" --no-n --no-rolestats --git-min-percent=20"
|
||||
if blame {
|
||||
args += " --git-blame"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user