Skip to content

Commit b7c152e

Browse files
committed
revert
1 parent e631177 commit b7c152e

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

bin/release.sh

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,23 @@
22

33
set -e
44

5-
# Make sure the release tag is provided.
65
if (( "$#" != 1 ))
76
then
8-
echo "Tag has to be provided."
7+
echo "Tag has to be provided"
98

109
exit 1
1110
fi
1211

13-
# Make sure the working directory is clear.
14-
if [ -z "$(git status --porcelain)" ]; then
15-
echo "Working directory clean"
16-
else
17-
echo "Your working directory is dirty. Did you forget to commit your changes?"
18-
19-
exit 1
20-
fi
21-
22-
RELEASE_BRANCH="6.x"
23-
CURRENT_BRANCH=$(git branch --show-current)
12+
CURRENT_BRANCH="6.x"
2413
VERSION=$1
2514

26-
# Make sure current branch and release branch match.
27-
if (( $RELEASE_BRANCH != $CURRENT_BRANCH ))
28-
then
29-
echo "Release branch ($RELEASE_BRANCH) does not matches the current active branch ($CURRENT_BRANCH)."
30-
31-
exit 1
32-
fi
33-
3415
# Always prepend with "v"
3516
if [[ $VERSION != v* ]]
3617
then
3718
VERSION="v$VERSION"
3819
fi
3920

4021
# Tag Framework
41-
git pull
4222
git tag $VERSION
4323
git push origin --tags
4424

@@ -59,7 +39,7 @@ do
5939
cd $TMP_DIR;
6040

6141
git clone $REMOTE_URL .
62-
git checkout "$RELEASE_BRANCH";
42+
git checkout "$CURRENT_BRANCH";
6343

6444
git tag $VERSION
6545
git push origin --tags

0 commit comments

Comments
 (0)