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

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

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

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

	return url;
}
function github ( repo , clone ) { let url ; if ( clone ) url = 'git@' + repo . host + ':' + repo . owner + '/' + repo . name + '.git' ; else url = addProtocol ( repo . host ) + '/' + repo . owner + '/' + repo . name + '/archive/' + repo . checkout + '.zip' ; return url ; }
Return a GitHub url for a given `repo` object.

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