Without this the build might fail if the git history is short enough,
perhaps via a shallow clone.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
rm -f $${GIT_INDEX_FILE} && \
git add -f Documentation/*.1 && \
git update-ref refs/heads/man \
rm -f $${GIT_INDEX_FILE} && \
git add -f Documentation/*.1 && \
git update-ref refs/heads/man \
- $$(echo "Autogenerated man pages for $$(git describe)" \
+ $$(echo "Autogenerated man pages for $$(git describe --always)" \
| git commit-tree $$(git write-tree --prefix=Documentation) \
-p refs/heads/man) && \
rm -f $${GIT_INDEX_FILE} && \
git add -f Documentation/*.html && \
git update-ref refs/heads/html \
| git commit-tree $$(git write-tree --prefix=Documentation) \
-p refs/heads/man) && \
rm -f $${GIT_INDEX_FILE} && \
git add -f Documentation/*.html && \
git update-ref refs/heads/html \
- $$(echo "Autogenerated html pages for $$(git describe)" \
+ $$(echo "Autogenerated html pages for $$(git describe --always)" \
| git commit-tree $$(git write-tree --prefix=Documentation) \
-p refs/heads/html)
| git commit-tree $$(git write-tree --prefix=Documentation) \
-p refs/heads/html)
- my $tag = fix(ex('git describe --match="[0-9]*"'));
+ my $tag = fix(ex('git describe --always --match="[0-9]*"'));