summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-05-04 21:24:57 +0000
committerKarl Berry <karl@freefriends.org>2020-05-04 21:24:57 +0000
commiteacb790d5448da1764e43075bfc5d219f8c330d2 (patch)
tree426fc1c2aaa29b95d4aa72ed6cf8683ca87ffe5b /Master/texmf-dist/tex
parente180d57df3b5a4cf19737549ecd6099c1dfaf713 (diff)
gitver (3may20)
git-svn-id: svn://tug.org/texlive/trunk@55019 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-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.}