Skip to content

Commit 9b6ca79

Browse files
committed
Fix release script.
1 parent 5f10665 commit 9b6ca79

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎bin/release‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ then
88
exit 1
99
fi
1010

11-
./bin/dev -c $1 && git add CHANGELOG.md && git commit -m "Release $1" -S && git push origin master
11+
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
1212

13-
./bin/subtree-split
13+
./bin/dev -c $1 && git add CHANGELOG.md && git commit -m "Release $1" -S && git push origin "$CURRENT_BRANCH"
1414

15-
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`
15+
./bin/subtree-split
1616

1717
for REMOTE in origin stomp amqp-ext amqp-lib amqp-bunny amqp-tools pheanstalk gearman sqs gps fs redis dbal null rdkafka enqueue simple-client enqueue-bundle job-queue test async-event-dispatcher mongodb
1818
do
@@ -28,8 +28,8 @@ do
2828

2929
(
3030
cd $TMP_DIR;
31-
git clone $REMOTE_URL . --depth=200
32-
git checkout $CURRENT_BRANCH;
31+
git clone $REMOTE_URL .
32+
git checkout "$CURRENT_BRANCH";
3333
# gsort comes with coreutils packages. brew install coreutils
3434
LAST_RELEASE=$(git tag -l [0-9].* | gsort -V | tail -n1 )
3535
if [[ -z "$LAST_RELEASE" ]]; then

0 commit comments

Comments
 (0)