From 4aae771644a6e7ae5b88a16ffc5ab33ab3d852ca Mon Sep 17 00:00:00 2001 From: Matt Troutman Date: Wed, 12 Mar 2025 11:29:16 -0500 Subject: [PATCH] removing the auto-commit portions. --- add-font.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/add-font.py b/add-font.py index 9d9f7d2..afa036f 100644 --- a/add-font.py +++ b/add-font.py @@ -3,7 +3,6 @@ import hashlib import zipfile from pathlib import Path import shutil -import subprocess def get_font_files(font_folder): @@ -75,15 +74,6 @@ def move_formula_to_formula_folder(formula_path): print(f"Moved {formula_path} to {formula_folder}/") -def commit_and_push_changes(font_name): - """Commit and push the changes to the GitHub repository.""" - print(f"Committing and pushing changes for {font_name}...") - subprocess.run(["git", "add", "Formula"], check=True) - subprocess.run(["git", "commit", "-m", f"Add {font_name} font"], check=True) - subprocess.run(["git", "push", "origin", "main"], check=True) - print("Changes pushed to GitHub.") - - def font_exists(font_name): """Check if the formula already exists in the Formula folder.""" formula_path = f"./Formula/font-{font_name.lower()}.rb" @@ -130,10 +120,8 @@ def main(): # Move the formula to the Formula directory move_formula_to_formula_folder(formula_path) - # Commit and push the changes to the tap repository - commit_and_push_changes(font_package_name) - print(f"Font {font_package_name} has been added successfully.") + print("Remember to commit and push your changes to GitHub manually.") if __name__ == "__main__":