blob: dd049d94b3834e3dda17ddd017d2500c7252ae32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
set -e
if [ -n "$(git config --get user.signingKey)" ]
then
GIT_OPTIONS="-s"
else
GIT_OPTIONS="-a"
fi
VERSION="${1}"
COMMIT="${2}"
TAG="$(echo ${VERSION} | sed -e 's|:|%|g' -e 's|~|_|g')"
git tag ${GIT_OPTIONS} -f -m "Tagging upstream version ${VERSION}." upstream/${TAG} ${COMMIT}
|