lib/download/git.js
function oschina(repo, clone) {
	let url;

	// oschina canceled download directly
	clone = true;

	if (clone)
		url = addProtocol(repo.host) + '/' + repo.owner + '/' + repo.name;
		// url = 'git@' + repo.host + ':' + repo.owner + '/' + repo.name + '.git';
	else
		url = addProtocol(repo.host) + '/' + repo.owner + '/' + repo.name + '/repository/archive/' + repo.checkout;

	return {url, clone};
}
function oschina(repo, clone) {
	let url;

	// oschina canceled download directly
	clone = true;

	if (clone)
		url = addProtocol(repo.host) + '/' + repo.owner + '/' + repo.name;
		// url = 'git@' + repo.host + ':' + repo.owner + '/' + repo.name + '.git';
	else
		url = addProtocol(repo.host) + '/' + repo.owner + '/' + repo.name + '/repository/archive/' + repo.checkout;

	return {url, clone};
}
function oschina ( repo , clone ) { let url ; // oschina canceled download directly clone = true ; if ( clone ) url = addProtocol ( repo . host ) + '/' + repo . owner + '/' + repo . name ; // url = 'git@' + repo.host + ':' + repo.owner + '/' + repo.name + '.git'; else url = addProtocol ( repo . host ) + '/' + repo . owner + '/' + repo . name + '/repository/archive/' + repo . checkout ; return { url , clone } ; }
Return a GitLab url for a given `repo` object.

@param {Object} repo
@param {Boolean} [clone]
@return {Object}
Return a GitLab url for a given repo object .