From 489d0d46d7b6d44d7e5edc01bdfa835a8e8b52a6 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Wed, 26 Mar 2014 15:54:30 -0700 Subject: [PATCH] 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""). --- scripts/bower/publish.sh | 6 ------ scripts/code.angularjs.org/publish.sh | 6 ------ 2 files changed, 12 deletions(-) diff --git a/scripts/bower/publish.sh b/scripts/bower/publish.sh index ad77aadc41ad..24d79e04c63c 100755 --- a/scripts/bower/publish.sh +++ b/scripts/bower/publish.sh @@ -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 diff --git a/scripts/code.angularjs.org/publish.sh b/scripts/code.angularjs.org/publish.sh index fdbadf3b7908..fc4f8d2e92e4 100755 --- a/scripts/code.angularjs.org/publish.sh +++ b/scripts/code.angularjs.org/publish.sh @@ -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/ #