summaryrefslogtreecommitdiff
blob: 737fa970c23aa87a93a7b18d8d74fba1293db40d (plain)
1
2
3
4
5
#!/bin/bash
COMMIT=${COMMIT:=HEAD}
PACKAGENAME=githooks
VERSION=$(TZ=UTC git log --date=format-local:%Y%m%dT%H%M%SZ -1 --format=tformat:%cd "$COMMIT")
exec git tag -s "${PACKAGENAME}-${VERSION}" "$COMMIT"