Merge pull request #8118 from MikeMcQuaid/bundle-update
brew.sh: run `brew update` before `brew bundle`.
This commit is contained in:
commit
f797392dae
@ -518,6 +518,7 @@ update-preinstall() {
|
||||
|
||||
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" ||
|
||||
"$HOMEBREW_COMMAND" = "bump-formula-pr" ||
|
||||
"$HOMEBREW_COMMAND" = "bundle" ||
|
||||
"$HOMEBREW_COMMAND" = "tap" && $HOMEBREW_ARG_COUNT -gt 1 ||
|
||||
"$HOMEBREW_CASK_COMMAND" = "install" || "$HOMEBREW_CASK_COMMAND" = "upgrade" ]]
|
||||
then
|
||||
|
@ -1,8 +1,9 @@
|
||||
#: * `update`, `up` [<options>]
|
||||
#: * `update` [<options>]
|
||||
#:
|
||||
#: Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1) and perform any necessary migrations.
|
||||
#:
|
||||
#: --merge Use `git merge` to apply updates (rather than `git rebase`).
|
||||
#: --preinstall Run on auto-updates (e.g. before `brew install`). Skips some slower steps.
|
||||
#: -f, --force Always do a slower, full update check (even if unnecessary).
|
||||
#: -v, --verbose Print the directories checked and `git` operations performed.
|
||||
#: -d, --debug Display a trace of all shell commands as they are executed.
|
||||
|
@ -517,12 +517,14 @@ also `pin`.
|
||||
|
||||
Remove a tapped formula repository.
|
||||
|
||||
### `update`, `up` [*`options`*]
|
||||
### `update` [*`options`*]
|
||||
|
||||
Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1) and perform any necessary migrations.
|
||||
|
||||
* `--merge`:
|
||||
Use `git merge` to apply updates (rather than `git rebase`).
|
||||
* `--preinstall`:
|
||||
Run on auto-updates (e.g. before `brew install`). Skips some slower steps.
|
||||
|
||||
### `update-reset` [*`repository`*]
|
||||
|
||||
|
@ -671,13 +671,17 @@ Unpin \fIformula\fR, allowing them to be upgraded by \fBbrew upgrade\fR \fIformu
|
||||
.SS "\fBuntap\fR \fItap\fR"
|
||||
Remove a tapped formula repository\.
|
||||
.
|
||||
.SS "\fBupdate\fR, \fBup\fR [\fIoptions\fR]"
|
||||
.SS "\fBupdate\fR [\fIoptions\fR]"
|
||||
Fetch the newest version of Homebrew and all formulae from GitHub using \fBgit\fR(1) and perform any necessary migrations\.
|
||||
.
|
||||
.TP
|
||||
\fB\-\-merge\fR
|
||||
Use \fBgit merge\fR to apply updates (rather than \fBgit rebase\fR)\.
|
||||
.
|
||||
.TP
|
||||
\fB\-\-preinstall\fR
|
||||
Run on auto\-updates (e\.g\. before \fBbrew install\fR)\. Skips some slower steps\.
|
||||
.
|
||||
.SS "\fBupdate\-reset\fR [\fIrepository\fR]"
|
||||
Fetch and reset Homebrew and all tap repositories (or any specified \fIrepository\fR) using \fBgit\fR(1) to their latest \fBorigin/master\fR\.
|
||||
.
|
||||
|
Loading…
x
Reference in New Issue
Block a user