Skip to content

Commit 80efb4d

Browse files
committed
git-codereview: recognize rpc:// and sso:// as Gerrit origins
Change-Id: I43e14ef54a5c9936f3c80fa87e9b9f0ed468b05a Reviewed-on: https://go-review.googlesource.com/c/151737 Run-TryBot: Russ Cox <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]>
1 parent 22b8515 commit 80efb4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

git-codereview/config.go

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ func haveGerritInternal(gerrit, origin string) bool {
6262
if strings.Contains(origin, "github.com") {
6363
return false
6464
}
65+
if strings.HasPrefix(origin, "sso://") || strings.HasPrefix(origin, "rpc://") {
66+
return true
67+
}
6568
if !strings.Contains(origin, "https://") {
6669
return false
6770
}

0 commit comments

Comments
 (0)