#!/bin/bash

## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

set -x
set -e

commit="$(git rev-parse --verify HEAD)"

git verify-commit "$commit"

tag="adrelanos_${commit}"

if git rev-parse --verify "$tag" &>/dev/null ; then
  true "$0: INFO: tag already signed, ok."
  exit 0
fi

git tag -s "$tag" -m .

## Done before push in 'dm-push'.
#git verify-tag "$tag"
