mirror of
				https://github.com/folke/lazy.nvim.git
				synced 2025-10-31 06:21:14 +00:00 
			
		
		
		
	fix: when just cloned, never commit lock
This commit is contained in:
		
					parent
					
						
							
								7328e290ba
							
						
					
				
			
			
				commit
				
					
						32fa5f8441
					
				
			
		
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -130,7 +130,9 @@ M.checkout = { | |||
|     local info = assert(Git.info(self.plugin.dir)) | ||||
|     local target = assert(Git.get_target(self.plugin)) | ||||
| 
 | ||||
|     if self.plugin.lock then | ||||
|     -- if the plugin is locked and we did not just clone it, | ||||
|     -- then don't update | ||||
|     if self.plugin.lock and not self.plugin._.cloned then | ||||
|       target = info | ||||
|     end | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue