Spaces:
Runtime error
Runtime error
Hannes Kath
commited on
Commit
·
f7f78bc
1
Parent(s):
d7402a3
Test
Browse files
app.py
CHANGED
|
@@ -10,16 +10,16 @@ if __name__ == '__main__':
|
|
| 10 |
# git properties
|
| 11 |
path_to_git = Path(__file__).parent
|
| 12 |
print(path_to_git)
|
| 13 |
-
repo = Repo(path_to_git)
|
| 14 |
-
active_branch = repo.active_branch
|
| 15 |
-
active_tag = None
|
| 16 |
-
for tag in repo.tags:
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
git_active_branch = active_branch.name
|
| 21 |
-
print(git_active_branch)
|
| 22 |
-
git_active_hash = str(active_branch.commit)
|
| 23 |
-
print(git_active_hash)
|
| 24 |
-
git_active_tag = active_tag
|
| 25 |
-
print(git_active_tag)
|
|
|
|
| 10 |
# git properties
|
| 11 |
path_to_git = Path(__file__).parent
|
| 12 |
print(path_to_git)
|
| 13 |
+
#repo = Repo(path_to_git)
|
| 14 |
+
#active_branch = repo.active_branch
|
| 15 |
+
#active_tag = None
|
| 16 |
+
#for tag in repo.tags:
|
| 17 |
+
# if tag.commit == active_branch.commit:
|
| 18 |
+
# active_tag = tag.name
|
| 19 |
+
# break
|
| 20 |
+
#git_active_branch = active_branch.name
|
| 21 |
+
#print(git_active_branch)
|
| 22 |
+
#git_active_hash = str(active_branch.commit)
|
| 23 |
+
#print(git_active_hash)
|
| 24 |
+
#git_active_tag = active_tag
|
| 25 |
+
#print(git_active_tag)
|