I use the library gitpython
If the local git is on a checked out tag, I want to get the name of the tag.
repo=git.Repo(repo_dir)
repo.tag # --> tags. But which is the current?
On the command line, the git
tool knows it. Example
user@host> git status
HEAD detached at release/1.2.3
I want to get the string "release/1.2.3" via gitpython.