diff options
author | Norbert Preining <norbert@preining.info> | 2020-05-04 03:02:37 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-05-04 03:02:37 +0000 |
commit | 47af91cb8475b7352015cf05ce881e6b8415112d (patch) | |
tree | 17afceb279a6187f83336bac3c72536ae1522a88 /macros/latex/contrib/gitver/gitver.sty | |
parent | d78de17ddf0443233483fd98f40802cae5aa87c5 (diff) |
CTAN sync 202005040302
Diffstat (limited to 'macros/latex/contrib/gitver/gitver.sty')
-rw-r--r-- | macros/latex/contrib/gitver/gitver.sty | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/latex/contrib/gitver/gitver.sty b/macros/latex/contrib/gitver/gitver.sty index 38165fe809..d5a6963d0e 100644 --- a/macros/latex/contrib/gitver/gitver.sty +++ b/macros/latex/contrib/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.} |