mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Follow renames when looking for the creation of a file
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
		
							parent
							
								
									13dc634282
								
							
						
					
					
						commit
						98a53aa399
					
				@ -260,7 +260,9 @@ class EntryFileSortKey:
 | 
			
		||||
 | 
			
		||||
        Return None if the file was never checked into git.
 | 
			
		||||
        """
 | 
			
		||||
        hashes = subprocess.check_output(['git', 'log', '--format=%H', '--', filename])
 | 
			
		||||
        hashes = subprocess.check_output(['git', 'log', '--format=%H',
 | 
			
		||||
                                          '--follow',
 | 
			
		||||
                                          '--', filename])
 | 
			
		||||
        m = re.search(b'(.+)$', hashes)
 | 
			
		||||
        if not m:
 | 
			
		||||
            # The git output is empty. This means that the file was
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user