Skip to content

Commit

Permalink
chore(release): simplify scripts so that they can be tested locally
Browse files Browse the repository at this point in the history
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"").
  • Loading branch information
tbosch committed Mar 26, 2014
1 parent 33e6e05 commit 489d0d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions scripts/bower/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ function prepare {
if [ -f $BUILD_DIR/$repo.js ] # ignore i18l
then
echo "-- Updating files in bower-$repo"
cd $TMP_DIR/bower-$repo
git reset --hard HEAD
git checkout master
git fetch --all
git reset --hard origin/master
cd $SCRIPT_DIR
cp $BUILD_DIR/$repo.* $TMP_DIR/bower-$repo/
fi
done
Expand Down
6 changes: 0 additions & 6 deletions scripts/code.angularjs.org/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ function prepare {
#
echo "-- Updating code.angularjs.org"
mkdir $REPO_DIR/$NEW_VERSION
cd $REPO_DIR
git reset --hard HEAD
git checkout master
git fetch --all
git reset --hard origin/master
cd $SCRIPT_DIR
cp -r $BUILD_DIR/* $REPO_DIR/$NEW_VERSION/

#
Expand Down

0 comments on commit 489d0d4

Please sign in to comment.