ProjectIdentity.

FromGitRemoteUrl(string) Method

Summary

Determines the GitLab server and project path based on a git repository's remote url
Assembly
Cake.GitLab.dll
Namespace
Cake.GitLab
Containing Type
ProjectIdentity

Syntax

public static ProjectIdentity FromGitRemoteUrl(string remoteUrl)

Parameters

Name Type Description
remoteUrl string A git remote url. Supports both HTTP and SSH urls (including urls in the SCP format, e.g. [email protected]:ap0llo/Cake.GitLab.git)

Return Value

Type Description
ProjectIdentity Returns a ProjectIdentity with the information extracted from the url or null if not project data could be read from the remote url.