This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository buildscripts.
commit 995262098a036dc5bb57d8e92deb5ca89c75f00d Author: Mihai Moldovan <io...@ionic.de> Date: Wed Dec 14 22:26:29 2022 +0100 bin/: add gitdate utility, fetching the commit date of HEAD in UTC and our custom yearmonthdate format. --- bin/gitdate | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/bin/gitdate b/bin/gitdate new file mode 100755 index 0000000..94226d1 --- /dev/null +++ b/bin/gitdate @@ -0,0 +1,26 @@ +#!/bin/bash + +# Copyright (C) 2022 by Mihai Moldovan <io...@ionic.de> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +# Get the UNIX timestamp for the commit date. +# Note that UNIX timestamps are not really leap seconds safe (which means that +# POSIX-conforming systems will see a discontinuity on dates with leap +# seconds), but we probably don't care if the result is convertible to UTC in +# a reproducible manner. +# Additionally, we only request the first line as a safety measure, although +# there should only be one to begin with. +typeset ts="$(git show --no-color -s --pretty='%ct' 'HEAD' | head -n '1')" +date --date='TZ="UTC" @'"${ts}" -u '+%Y%m%d' -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/buildscripts.git _______________________________________________ x2go-commits mailing list x2go-commits@lists.x2go.org https://lists.x2go.org/listinfo/x2go-commits