Skip to content

Commit 489d0d4

Browse files
committed
chore(release): simplify scripts so that they can be tested locally
The `git fetch --all` resulted in an error if in the local `.gitconfig` a remote was configured that does not exist in the bower/code.anguarjs.org repositories (e.g. "remote "upstream-prs"").
1 parent 33e6e05 commit 489d0d4

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

scripts/bower/publish.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ function prepare {
5050
if [ -f $BUILD_DIR/$repo.js ] # ignore i18l
5151
then
5252
echo "-- Updating files in bower-$repo"
53-
cd $TMP_DIR/bower-$repo
54-
git reset --hard HEAD
55-
git checkout master
56-
git fetch --all
57-
git reset --hard origin/master
58-
cd $SCRIPT_DIR
5953
cp $BUILD_DIR/$repo.* $TMP_DIR/bower-$repo/
6054
fi
6155
done

scripts/code.angularjs.org/publish.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ function prepare {
3838
#
3939
echo "-- Updating code.angularjs.org"
4040
mkdir $REPO_DIR/$NEW_VERSION
41-
cd $REPO_DIR
42-
git reset --hard HEAD
43-
git checkout master
44-
git fetch --all
45-
git reset --hard origin/master
46-
cd $SCRIPT_DIR
4741
cp -r $BUILD_DIR/* $REPO_DIR/$NEW_VERSION/
4842

4943
#

0 commit comments

Comments
 (0)