Skip to content
Snippets Groups Projects
Commit f03e95be authored by Guillaume Tucker's avatar Guillaume Tucker
Browse files

HACK add tag.sh to create kernelci-bisect-snapshot-xxx tags

parent d9790301
No related branches found
Tags kernelci-bisect-snapshot-026
No related merge requests found
tag.sh 0 → 100755
#!/bin/bash
set -e
px=kernelci-bisect-snapshot-
last_tag=$(git tag -l | grep $px | sort | tail -n 1)
n=$(echo $last_tag | awk '{print substr($0,26)}')
n="10#$n"
let 'n=n+1'
m=`printf "%03d" $n`
new_tag="$px""$m"
echo "tag: $new_tag"
today=`date +%Y-%m-%d`
msg="KernelCI bisection snapshot #$m $today"
echo "msg: $msg"
git tag -a "$new_tag" -m "$msg"
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment