use faster git describe method from GitPython instead
This commit is contained in:
parent
126d420b7a
commit
9bf3daa352
1 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ import git
|
||||||
import datetime
|
import datetime
|
||||||
from typing import Optional, List
|
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 *
|
from PyTeX.config.header_parts import *
|
||||||
|
|
||||||
|
|
||||||
|
@ -79,9 +79,9 @@ class BuildInfo:
|
||||||
|
|
||||||
def get_repo_version(self):
|
def get_repo_version(self):
|
||||||
if self._packages_repo_commit:
|
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:
|
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(
|
def create_header(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in a new issue