fix(besadii): Don't log errors for /meta refs
These are updated for all sorts of things and should just be silently ignored by besadii. Change-Id: I0a6de373b21d6bef5fd31d0a1d3f72c501073bba Reviewed-on: https://cl.tvl.fyi/c/depot/+/801 Reviewed-by: BuildkiteCI Reviewed-by: Kane York <rikingcoding@gmail.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
7f8184c6b7
commit
0380841eb1
1 changed files with 3 additions and 2 deletions
|
@ -28,6 +28,7 @@ import (
|
|||
)
|
||||
|
||||
var branchRegexp = regexp.MustCompile(`^refs/heads/(.*)$`)
|
||||
var metaRegexp = regexp.MustCompile(`^refs/changes/\d{0,2}/(\d+)/meta$`)
|
||||
var patchsetRegexp = regexp.MustCompile(`^refs/changes/\d{0,2}/(\d+)/(\d+)$`)
|
||||
|
||||
// refUpdated is a struct representing the information passed to
|
||||
|
@ -158,8 +159,8 @@ func refUpdatedFromFlags() (*refUpdated, error) {
|
|||
return nil, nil
|
||||
}
|
||||
|
||||
if branchRegexp.MatchString(update.ref) {
|
||||
// branches don't need special handling -> just move on
|
||||
if branchRegexp.MatchString(update.ref) || metaRegexp.MatchString(update.ref) {
|
||||
// these refs don't need special handling, just move on
|
||||
return &update, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue