summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gitver
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/gitver')
-rw-r--r--Master/texmf-dist/tex/latex/gitver/gitver.sty8
1 files changed, 4 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/gitver/gitver.sty b/Master/texmf-dist/tex/latex/gitver/gitver.sty
index 38165fe8098..d5a6963d0e6 100644
--- a/Master/texmf-dist/tex/latex/gitver/gitver.sty
+++ b/Master/texmf-dist/tex/latex/gitver/gitver.sty
@@ -19,7 +19,7 @@
\NeedsTeXFormat{LaTeX2e}
\def\@gitVerPkgName{gitver}
\ProvidesPackage{\@gitVerPkgName}
- [2019/02/06 v1.0 Access current git version and optionally add it to document headers]
+ [2020/04/30 v1.1 Access current git version and optionally add it to document headers]
\RequirePackage{hyperref}
\RequirePackage{catchfile}
@@ -73,10 +73,10 @@
\@gitver@successfalse
\IfFileExists{\jobname_desc.aux}{
% Read the file into \gitVer
- \CatchFileDef{\gitVer}{\jobname_desc.aux}{}
+ \CatchFileDef{\gitVer}{\jobname_desc.aux}{\endlinechar=-1}
- % Check if the macro \gitVer is "\par ": this is its definition if the file had no contents
- \def\@gitver@emptyfile{\par }
+ % Check if the macro \gitVer is empty: this is its definition if the file had no contents
+ \def\@gitver@emptyfile{}
\ifx\gitVer\@gitver@emptyfile%
\PackageError{\@gitVerPkgName}{Git output is empty: is this folder a git repo?}{Make sure that this directory has had "git init" called in it, and has at least one commit.}