diff --git a/postit/contents.py b/postit/contents.py index e646a73..2e392e5 100644 --- a/postit/contents.py +++ b/postit/contents.py @@ -1,7 +1,6 @@ import os from shutil import rmtree from flask import Blueprint, render_template, request, url_for -from . import git repo_url = os.environ.get("REPO_URL") repo_path = os.environ.get("REPO_PATH") @@ -15,9 +14,5 @@ def contents(): if request.method == "POST": print(request) if request.form.get("secret") == os.environ.get("REPO_SECRET"): - print("Updating the contents!") - print("Cleaning the folder") - rmtree(repo_path) - print("Cloning the repo") - git.clone_repo(repo_url, repo_path) + print("Update the contents") return "Hello" diff --git a/postit/git.py b/postit/git.py deleted file mode 100644 index 11c2654..0000000 --- a/postit/git.py +++ /dev/null @@ -1,5 +0,0 @@ -from pygit2 import clone_repository - - -def clone_repo(repo_url, repo_path): - repo = clone_repository(repo_url, repo_path) diff --git a/setup.py b/setup.py index dbd4a75..07514b1 100644 --- a/setup.py +++ b/setup.py @@ -6,5 +6,5 @@ setup( packages=find_packages(), include_package_data=True, zip_safe=False, - install_requires=["flask", "python-dotenv", "pygit2"], + install_requires=["flask", "python-dotenv"], )