aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/gerrit-hook/gerrit.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gerrit-hook/gerrit.go b/tools/gerrit-hook/gerrit.go
index 04de53d..4854427 100644
--- a/tools/gerrit-hook/gerrit.go
+++ b/tools/gerrit-hook/gerrit.go
@@ -13,6 +13,7 @@ import (
"os"
"regexp"
"strconv"
+ "strings"
"time"
)
@@ -76,6 +77,10 @@ func triggerForPatchsetCreated() (*buildTrigger, error) {
flag.Parse()
+ // if the name of the repository has dot in it's name, we
+ // replace it with the string `-dot-'.
+ trigger.project = strings.Replace(trigger.project, ".", "-dot-", -1)
+
// if the name of the targetted branch is not `main', we don't
// care about running the tests.
if trigger.branch != "main" {