Skip to content

Commit

Permalink
archive-font-patcher: Write commit hash instead of tags in readme
Browse files Browse the repository at this point in the history
[why]
In the CI we have only a shallow clone of the repo, so access to tags is
not possible. Instead of resulting in a nice message like '2.3.3-35' we
get an empty string.

[how]
As we have no tags we can only write the commit hash and other
information given in the only existing (i.e. last) commit:
date, author, title

It's a bit more cumbersome but one can still see from which point in the
repo the archive has been created.

Signed-off-by: Fini Jastrow <[email protected]>
  • Loading branch information
Finii committed Feb 17, 2023
1 parent 55b6e08 commit afa6abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/scripts/archive-font-patcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ mini_readme="$outputdir/readme.md"
cat "$parent_dir/src/archive-font-patcher-readme.md" >> "$mini_readme"
if [ $# -ge 1 ]; then
echo "Intemediate version, adding git version"
echo -e "\n## Version\n" >> "$mini_readme"
echo "This archive is created from $(git describe --tags --dirty)" >> "$mini_readme"
echo -e "\n## Version\nThis archive is created from\n" >> "$mini_readme"
git log --pretty=medium --no-decorate --no-abbrev -n 1 HEAD | sed 's/^/ /' >> "$mini_readme"
fi

# clear out the directory zips
Expand Down

0 comments on commit afa6abe

Please sign in to comment.