make: Ensure git hash is 7 characters
Specify abbrev so the version string is the same across systems with different values for core.abbrev. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
		
				
					committed by
					
						 Tim Crawford
						Tim Crawford
					
				
			
			
				
	
			
			
			
						parent
						
							f46360fb45
						
					
				
				
					commit
					28882975e3
				
			
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							| @@ -13,7 +13,7 @@ all: | |||||||
| else | else | ||||||
| # Calculate version | # Calculate version | ||||||
| DATE=$(shell git show --format="%cd" --date="format:%Y-%m-%d" --no-patch) | DATE=$(shell git show --format="%cd" --date="format:%Y-%m-%d" --no-patch) | ||||||
| REV=$(shell git describe --always --dirty) | REV=$(shell git describe --abbrev=7 --always --dirty) | ||||||
| VERSION?=$(DATE)_$(REV) | VERSION?=$(DATE)_$(REV) | ||||||
|  |  | ||||||
| # Set build directory | # Set build directory | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user