mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #32 from yuriks/master
[build] Search for the git binary in the default msysgit install dir
This commit is contained in:
		
						commit
						97d47d55f3
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -6,8 +6,15 @@ var cmd_revision    = " rev-parse HEAD"; | ||||||
| var cmd_describe    = " describe --always --long --dirty"; | var cmd_describe    = " describe --always --long --dirty"; | ||||||
| var cmd_branch      = " rev-parse --abbrev-ref HEAD"; | var cmd_branch      = " rev-parse --abbrev-ref HEAD"; | ||||||
| 
 | 
 | ||||||
|  | var git_search_paths = { | ||||||
|  |     "git.cmd": 1, | ||||||
|  |     "git": 1, | ||||||
|  |     "C:\\Program Files (x86)\\Git\\bin\\git.exe": 1, | ||||||
|  |     "C:\\Program Files\\Git\\bin\\git.exe": 1 | ||||||
|  | }; | ||||||
|  | 
 | ||||||
| function GetGitExe() { | function GetGitExe() { | ||||||
|     for (var gitexe in { "git.cmd": 1, "git": 1 }) { |     for (var gitexe in git_search_paths) { | ||||||
|         try { |         try { | ||||||
|             wshShell.Exec(gitexe); |             wshShell.Exec(gitexe); | ||||||
|             return gitexe; |             return gitexe; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue