mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Fix git version check with four digits (1.8.3.1) (#2236)
This commit is contained in:
		
				
					committed by
					
						
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							66e8262530
						
					
				
				
					commit
					539d9f4c30
				
			@@ -762,7 +762,7 @@ func NewContext() {
 | 
			
		||||
			log.Fatal(4, "Error retrieving git version: %v", err)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		splitVersion := strings.SplitN(binVersion, ".", 3)
 | 
			
		||||
		splitVersion := strings.SplitN(binVersion, ".", 4)
 | 
			
		||||
 | 
			
		||||
		majorVersion, err := strconv.ParseUint(splitVersion[0], 10, 64)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user