|  | @@ -34,16 +34,16 @@ func HandlePush(payload interface{}, header webhooks.Header) {
 | 
	
		
			
			| 34 | 34 |  	// Process the payload using the right structure
 | 
	
		
			
			| 35 | 35 |  	pl := payload.(gitlab.PushEventPayload)
 | 
	
		
			
			| 36 | 36 |  
 | 
	
		
			
			| 37 |  | -	// Clone or pull the repository
 | 
	
		
			
			| 38 |  | -	if _, err = git.Sync(cfg.Git); err != nil {
 | 
	
		
			
			| 39 |  | -		panic(err)
 | 
	
		
			
			| 40 |  | -	}
 | 
	
		
			
			| 41 |  | -
 | 
	
		
			
			| 42 | 37 |  	// Only push changes made on master to Grafana
 | 
	
		
			
			| 43 | 38 |  	if pl.Ref != "refs/heads/master" {
 | 
	
		
			
			| 44 | 39 |  		return
 | 
	
		
			
			| 45 | 40 |  	}
 | 
	
		
			
			| 46 | 41 |  
 | 
	
		
			
			|  | 42 | +	// Clone or pull the repository
 | 
	
		
			
			|  | 43 | +	if _, err = git.Sync(cfg.Git); err != nil {
 | 
	
		
			
			|  | 44 | +		panic(err)
 | 
	
		
			
			|  | 45 | +	}
 | 
	
		
			
			|  | 46 | +
 | 
	
		
			
			| 47 | 47 |  	// Files to push are stored in a map before being pushed to the Grafana API.
 | 
	
		
			
			| 48 | 48 |  	// We don't push them in the loop iterating over commits because, in the
 | 
	
		
			
			| 49 | 49 |  	// case a file is successively updated by two commits pushed at the same
 |