mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	[New] Clean up git reflog history before git gc
This commit is contained in:
		
				
					committed by
					
						 Jordan Harband
						Jordan Harband
					
				
			
			
				
	
			
			
			
						parent
						
							ab591b07ef
						
					
				
				
					commit
					248706d5f8
				
			| @@ -125,6 +125,9 @@ install_nvm_from_git() { | ||||
|   fi | ||||
|  | ||||
|   echo "=> Compressing and cleaning up git repository" | ||||
|   if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" reflog expire --expire=now --all; then | ||||
|     echo >&2 "Your version of git is out of date. Please update it!" | ||||
|   fi | ||||
|   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!" | ||||
|   fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user