mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 01:12:11 +08:00 
			
		
		
		
	Fixed checkGit() in case of submodules
Since Git 1.7.8, submodules don't contain a .git/ folder anymore. Instead, the submodule directory is populated with a .git text file which contains a git-dir: /path/to/superproject/git_dir/modules/name. See, https://github.com/git/git/blob/master/Documentation/RelNotes/1.7.8.txt#L109-L114
This commit is contained in:
		
							
								
								
									
										2
									
								
								vendor/profile.ps1
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/profile.ps1
									
									
									
									
										vendored
									
									
								
							| @@ -53,7 +53,7 @@ try { | ||||
| } | ||||
|  | ||||
| function checkGit($Path) { | ||||
|     if (Test-Path -Path (Join-Path $Path '.git/') ) { | ||||
|     if (Test-Path -Path (Join-Path $Path '.git') ) { | ||||
|         Write-VcsStatus | ||||
|         return | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user