diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-28 20:40:29 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-28 20:40:29 +0100 |
commit | 390efbf521d62d9cb188c7688288878ef1b1b45d (patch) | |
tree | a0edfe8378982d3b6f1979e8b1b4b5a09df40a6e /t.py | |
parent | b8b07b9ff5fe478b872d3da767e549841da02205 (diff) | |
download | gitpython-390efbf521d62d9cb188c7688288878ef1b1b45d.tar.gz |
Fix more missing types in Symbolic.py, cos GuthubActions pytest stuck
Diffstat (limited to 't.py')
-rw-r--r-- | t.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +from git import Repo + + +def get_active_branch(gitobj: Repo) -> str: + return gitobj.active_branch.name + + +gitobj = Repo(".") +print(get_active_branch(gitobj)) |