View definition

func HandleCloneUserCredentials

Defined in github.com/gogits/gogs/models/repo_mirror.go

Description

HandleCloneUserCredentials replaces user credentials from HTTP/HTTPS URL with placeholder <credentials>. It will fail for any other forms of clone addresses.