Skip to content

Commit de996ec

Browse files
committed
build(publish.sh): uncomment prepare steps for existing tmp repo
I tested these steps manually and they seem to work well.
1 parent 059e09c commit de996ec

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tools/code.angularjs.org/publish.sh

+5-10
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,11 @@ function prepare {
2929

3030

3131
if [ -d "$REPO_DIR" ]; then
32-
# TODO(i): it's not clear how to safely fetch and update a shallow clone
33-
# I'll need to test this during the next release
34-
echo "-- TODO: Update code.angularjs.org repo at $REPO_DIR"
35-
echo "-- TODO: if pushing the 'publish' action fails, rebase the repo manually and push"
36-
echo "-- TODO: or delete $REPO_DIR and rerun the prepare and publish steps"
37-
#cd $REPO_DIR
38-
#git fetch --update-shallow origin
39-
#git checkout master
40-
#git merge --ff-only origin/master
41-
#cd -
32+
cd $REPO_DIR
33+
git fetch --update-shallow origin
34+
git checkout master
35+
git merge --ff-only origin/master
36+
cd -
4237
else
4338
echo "-- Cloning code.angularjs.org into $REPO_DIR"
4439
git clone git@github.com:angular/code.angularjs.org.git $REPO_DIR --depth=1

0 commit comments

Comments
 (0)