File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -23,25 +23,38 @@ function rbx_untag_release {
23
23
24
24
version=$1
25
25
26
+ if [[ -z $version ]]; then
27
+ cat >&2 << EOM
28
+ untag VERSION is required
29
+
30
+ EOM
31
+ rbx_tag_usage
32
+ fi
33
+
26
34
IFS=" ." read -r -a array <<< " $(rbx_revision_version)"
27
35
28
36
let major=${array[0]}
29
37
let minor=${array[1]}
30
38
31
39
untag_version=" ${major} .${minor} "
32
40
33
- git describe " $untag_version " > /dev/null
41
+ git describe " v $untag_version "
34
42
35
43
if [[ $? -eq 0 && " $version " == " $untag_version " ]]; then
36
44
echo Untagging " v$version "
37
- # git tag -d "v$version" && git push origin ":refs/tags/v$version"
45
+ git tag -d " v$version " && git push origin " :refs/tags/v$version "
38
46
else
39
47
echo NOT untagging " v$version " , does not match " v$untag_version "
40
48
fi
41
49
}
42
50
43
51
function rbx_tag_usage {
44
- echo " Usage: ${0##*/ } [tag untag]"
52
+ cat >&2 << -EOM
53
+ Usage: ${0##*/ } option
54
+ where option is
55
+ tag Tags a release at the current release + 1
56
+ untag VERSION Untags VERSION if it is the current release
57
+ EOM
45
58
exit 1
46
59
}
47
60
You can’t perform that action at this time.
0 commit comments