Spaces:
Runtime error
Runtime error
File size: 629 Bytes
2cd7ddb 6068114 5089f70 2cd7ddb ebde78d f7f78bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
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) |