aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-01-25 09:18:33 +0100
committerThierry Reding <treding@nvidia.com>2017-01-25 09:18:33 +0100
commitde95da65d04ffc7acc468983ca35ceec5ab1d61c (patch)
tree0642d04be06433479d1a3c16104a4a4ee00cf269
parent212773451cc3522f4ab9e3107a6f79220b34453e (diff)
downloadmaint-scripts-de95da65d04ffc7acc468983ca35ceec5ab1d61c.tar.gz
tag-linux-tegra: Skip existing tags
Sometimes an error occurs when writing tags, or tags have to be redone. In order to simply that, skip existing tags, so that only a subset can be redone. Signed-off-by: Thierry Reding <treding@nvidia.com>
-rwxr-xr-xtag-linux-tegra.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tag-linux-tegra.sh b/tag-linux-tegra.sh
index f071b5a..060384f 100755
--- a/tag-linux-tegra.sh
+++ b/tag-linux-tegra.sh
@@ -25,5 +25,10 @@ done
for branch in ${branches}; do
tag=tegra-${branch//\//-}
+ if git rev-parse --quiet --verify $tag > /dev/null; then
+ echo "tag $tag already exists, skipping"
+ continue
+ fi
+
git tag -s $tag $branch
done