git-svn: allow "0" in SVN path components
Blindly checking a path component for falsiness is unwise, as "0" is false to Perl, but a valid pathname component for SVN (or any filesystem). Found via random code reading. Signed-off-by: Eric Wong <e@80x24.org>
This commit is contained in:
		
				
					committed by
					
						
						Junio C Hamano
					
				
			
			
				
	
			
			
			
						parent
						
							a274e0a036
						
					
				
				
					commit
					a0f5a0c828
				
			@ -606,7 +606,7 @@ sub minimize_url {
 | 
			
		||||
			my $latest = $ra->get_latest_revnum;
 | 
			
		||||
			$ra->get_log("", $latest, 0, 1, 0, 1, sub {});
 | 
			
		||||
		};
 | 
			
		||||
	} while ($@ && ($c = shift @components));
 | 
			
		||||
	} while ($@ && defined($c = shift @components));
 | 
			
		||||
 | 
			
		||||
	return canonicalize_url($url);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user