mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 17:32:27 +08:00 
			
		
		
		
	Merge pull request #1299 from alexandr-san4ez/master
Changed the way directory is defined .git
This commit is contained in:
		
							
								
								
									
										2
									
								
								vendor/clink.lua
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/clink.lua
									
									
									
									
										vendored
									
									
								
							| @@ -132,7 +132,7 @@ local function get_git_dir(path) | ||||
|  | ||||
|     -- Checks if provided directory contains git directory | ||||
|     local function has_git_dir(dir) | ||||
|         return #clink.find_dirs(dir..'/.git') > 0 and dir..'/.git' | ||||
|         return clink.is_dir(dir..'/.git') and dir..'/.git' | ||||
|     end | ||||
|  | ||||
|     local function has_git_file(dir) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user