From 75e0a060ea1ba2ab980f1e8119faeb357090ed59 Mon Sep 17 00:00:00 2001 From: Matt Troutman Date: Wed, 2 Oct 2024 23:11:32 -0500 Subject: [PATCH] no message --- .fontfoldercleanup/remove_ds_and_clean_empty_folders.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.fontfoldercleanup/remove_ds_and_clean_empty_folders.py b/.fontfoldercleanup/remove_ds_and_clean_empty_folders.py index 8a2a5cb..1f61752 100644 --- a/.fontfoldercleanup/remove_ds_and_clean_empty_folders.py +++ b/.fontfoldercleanup/remove_ds_and_clean_empty_folders.py @@ -1,10 +1,15 @@ import font_folder_cleanup import os +def git_cleanup(): + os.system("cd $(git rev-parse --show-toplevel)") + os.system("git reset --hard") + os.system("git clean -fdx -e .env/ -e .idea/ -e .fontfoldercleanup/") + if __name__ == '__main__': # Clean up git repository os.system("./git_reset_and_clean.sh") # Change to repo location, reset the repository, and clean untracked files except those in .gitignore font_folder_cleanup.remove_ds_store_files() # Remove .DS_Store files from the repository font_folder_cleanup.remove_setup_complete_files() # Remove setup complete files from the repository font_folder_cleanup.remove_empty_folders() # Remove empty folders from the repository - os.system("./git_reset_and_clean.sh") # Change to repo location, reset the repository, and clean untracked files except those in .gitignore + os.system("./git_reset_and_clean.sh") # Change to repo location, reset the repository, and clean untracked files except those in .gitignore \ No newline at end of file