mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Add a tool for removing stale *.pyc files
(imported from commit c0fcfb171932f523fff13f14f09ecf5b3a6b21de)
This commit is contained in:
		
							
								
								
									
										11
									
								
								tools/clean-repo
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								tools/clean-repo
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
#!/bin/bash -e
 | 
			
		||||
 | 
			
		||||
# Remove .pyc files to prevent loading stale code.
 | 
			
		||||
#
 | 
			
		||||
# You can run it automatically on checkout:
 | 
			
		||||
#
 | 
			
		||||
#     echo ./tools/clean-repo > .git/hooks/post-checkout
 | 
			
		||||
#     chmod +x .git/hooks/post-checkout
 | 
			
		||||
 | 
			
		||||
cd "$(dirname "$0")/.."
 | 
			
		||||
find . -name '*.pyc' -print -delete | sed 's|^|[clean-repo] Deleting |'
 | 
			
		||||
		Reference in New Issue
	
	Block a user