|  | @ -40,10 +40,11 @@ endf | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | func! s:parse_name(arg) |  |  | func! s:parse_name(arg) | 
														
													
														
															
																|  |  | let arg = a:arg |  |  | let arg = a:arg | 
														
													
														
															
																|  |  |  |  |  | let git_proto = exists('g:vundle_default_git_proto') ? g:vundle_default_git_proto : 'http' | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | if    arg =~? '^\s*\(gh\|github\):\S\+' |  |  | if    arg =~? '^\s*\(gh\|github\):\S\+' | 
														
													
														
															
																|  |  | \  || arg =~? '^[a-z0-9][a-z0-9-]*/[^/]\+$' |  |  | \  || arg =~? '^[a-z0-9][a-z0-9-]*/[^/]\+$' | 
														
													
														
															
																|  |  | let uri = 'https://github.com/'.split(arg, ':')[-1] |  |  |  | 
														
													
														
															
																|  |  |  |  |  | let uri = git_proto.'://github.com/'.split(arg, ':')[-1] | 
														
													
														
															
																|  |  | if uri !~? '\.git$' |  |  | if uri !~? '\.git$' | 
														
													
														
															
																|  |  | let uri .= '.git' |  |  | let uri .= '.git' | 
														
													
														
															
																|  |  | endif |  |  | endif | 
														
													
												
													
														
															
																|  | @ -55,7 +56,7 @@ func! s:parse_name(arg) | 
														
													
														
															
																|  |  | let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1] |  |  | let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1] | 
														
													
														
															
																|  |  | else |  |  | else | 
														
													
														
															
																|  |  | let name = arg |  |  | let name = arg | 
														
													
														
															
																|  |  | let uri  = 'https://github.com/vim-scripts/'.name.'.git' |  |  |  | 
														
													
														
															
																|  |  |  |  |  | let uri  = git_proto.'://github.com/vim-scripts/'.name.'.git' | 
														
													
														
															
																|  |  | endif |  |  | endif | 
														
													
														
															
																|  |  | return {'name': name, 'uri': uri, 'name_spec': arg } |  |  | return {'name': name, 'uri': uri, 'name_spec': arg } | 
														
													
														
															
																|  |  | endf |  |  | endf | 
														
													
												
													
														
															
																|  | 
 |