Skip to content

Commit

Permalink
Clean Homebrew Git repo before committing. Fixes yarnpkg#3275
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel15 committed Apr 30, 2017
1 parent 3514cb2 commit fc0127d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/update-homebrew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ PATH=$PATH:$HOME/.linuxbrew/bin/
pushd ~/.linuxbrew/Library/Taps/homebrew/homebrew-core
#git remote set-url origin https://github.com/Daniel15/homebrew-core # for testing
git remote set-url origin https://github.com/homebrew/homebrew-core
git reset --hard HEAD
git clean -fd
git fetch --prune origin
# Remove any existing branch (eg. if the previous attempt failed)
git branch -D yarn-$version || true
popd
Expand Down

0 comments on commit fc0127d

Please sign in to comment.