use faster git describe method from GitPython instead

This commit is contained in:
Maximilian Keßler 2022-01-09 12:27:00 +01:00
parent 126d420b7a
commit 9bf3daa352

View file

@ -2,7 +2,7 @@ import git
import datetime
from typing import Optional, List
from PyTeX.build.git_hook import git_describe, get_latest_commit
from PyTeX.build.git_hook import get_latest_commit
from PyTeX.config.header_parts import *
@ -79,9 +79,9 @@ class BuildInfo:
def get_repo_version(self):
if self._packages_repo_commit:
self._packages_repo_version = git_describe(self._packages_repo_commit)
self._packages_repo_version = self._packages_repo.git.describe()
if self._pytex_repo_commit:
self._pytex_repo_version = git_describe(self._pytex_repo_commit)
self._pytex_repo_version = self._pytex_repo.git.describe()
def create_header(
self,