Skip to content

Commit

Permalink
Revert "print current version on startup" (#70)
Browse files Browse the repository at this point in the history
This reverts commit 213ef57.
  • Loading branch information
nanos committed Aug 6, 2023
1 parent 712d88c commit 253c7c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 1 addition & 11 deletions find_posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import time
import argparse
import uuid
import git
import defusedxml.ElementTree as ET

argparser=argparse.ArgumentParser()
Expand Down Expand Up @@ -1247,16 +1246,7 @@ def set_server_apis(server):
if __name__ == "__main__":
start = datetime.now()

repo = git.Repo(os.getcwd())

tag = next((tag for tag in repo.tags if tag.commit == repo.head.commit), None)

if(isinstance(tag, git.TagReference)) :
version = tag.name
else:
version = f"on commit {repo.head.commit.name_rev}"

log(f"Starting FediFetcher {version}")
log(f"Starting FediFetcher")

arguments = argparser.parse_args()

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
certifi==2022.12.7
charset-normalizer==3.0.1
docutils==0.19
gitdb==4.0.10
GitPython==3.1.31
idna==3.4
python-dateutil==2.8.2
requests==2.28.2
Expand Down

0 comments on commit 253c7c4

Please sign in to comment.