TestSpace / app.py
Hannes Kath
Test
ebde78d
raw
history blame contribute delete
629 Bytes
from pathlib import Path
from git import Repo
if __name__ == '__main__':
print('Hi')
# git properties
path_to_git = Path(__file__).parent
print(path_to_git)
repo = Repo(path_to_git)
print('SUCESS')
#active_branch = repo.active_branch
#active_tag = None
#for tag in repo.tags:
# if tag.commit == active_branch.commit:
# active_tag = tag.name
# break
#git_active_branch = active_branch.name
#print(git_active_branch)
#git_active_hash = str(active_branch.commit)
#print(git_active_hash)
#git_active_tag = active_tag
#print(git_active_tag)