mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	[New] Add --auto to git gc to speed up install & upgrade
				
					
				
			This commit is contained in:
		
				
					committed by
					
						 Jordan Harband
						Jordan Harband
					
				
			
			
				
	
			
			
			
						parent
						
							b3bdbb2712
						
					
				
				
					commit
					38a568c9c9
				
			| @@ -125,7 +125,7 @@ install_nvm_from_git() { | |||||||
|   fi |   fi | ||||||
|  |  | ||||||
|   echo "=> Compressing and cleaning up git repository" |   echo "=> Compressing and cleaning up git repository" | ||||||
|   if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --aggressive --prune=now ; then |   if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --auto --aggressive --prune=now ; then | ||||||
|     echo >&2 "Your version of git is out of date. Please update it!" |     echo >&2 "Your version of git is out of date. Please update it!" | ||||||
|   fi |   fi | ||||||
|   return |   return | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user