I found an error Unexpected issue while generating metrics - startIndex cannot be larger than length of string. (Parameter 'startIndex') and realized that gitUrl.LastIndexOf("/") always returns the length of gitUrl, so I searched for a solution and change it to gitUrl.LastIndexOf('/').
I found an error
Unexpected issue while generating metrics - startIndex cannot be larger than length of string. (Parameter 'startIndex')
and realized thatgitUrl.LastIndexOf("/")
always returns the length ofgitUrl
, so I searched for a solution and change it togitUrl.LastIndexOf('/')
.