mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			269 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			269 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package git
 | 
						|
 | 
						|
import "github.com/mholt/caddy/middleware/git/gitos"
 | 
						|
 | 
						|
// gos is the OS used by git.
 | 
						|
var gos gitos.OS = gitos.GitOS{}
 | 
						|
 | 
						|
// SetOS sets the OS to be used. Intended to be used for tests
 | 
						|
// to abstract OS level git actions.
 | 
						|
func SetOS(os gitos.OS) {
 | 
						|
	gos = os
 | 
						|
}
 |