aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.sh
AgeCommit message (Collapse)Author
2017-07-10Display "Use `brew upgrade foo` instead" when calling update with argsTim Marinin
So the user could just copy-paste the command.
2017-04-25Allow forcing Homebrew GitHub organisation.Mike McQuaid
On Linux this defaults to Linuxbrew but in some cases (i.e. a Linux machine performing uploads for Homebrew) we want to allow this to be overridden back to the defaults. Relies on a change incoming to `brew test-bot` to set this there.
2017-04-02Document all short flags.Mike McQuaid
2017-03-12update: stop autoupdate skipping no formula taps.Mike McQuaid
This will be slightly slower if you have a bunch of non-formula (i.e. command or cask) taps but it avoids the confusion of having Homebrew saying it's updated when it only did so selectively. Fixes #1946.
2017-01-29update: note migrations may be performed.Mike McQuaid
As requested in https://github.com/Homebrew/homebrew-core/issues/9316.
2016-12-01update.sh: Use full path to pkillBaptiste Fontaine
Fixes #1600.
2016-09-29update.sh: use sort instead of git tag --sort.Mike McQuaid
Older versions of Git don't have this flag and we don't want to block updates for them when there's a (relatively) simple workaround.
2016-09-27update.sh: hide GITHUB_HEADERS missing output.Mike McQuaid
Will only happen once but could be confusing anyway.
2016-09-26update.sh: don't restore branch to stable.Mike McQuaid
Only run for Homebrew developers so assume they don’t want to switch back to an old stable branch. Fixes #1141.
2016-09-25update.sh: use HOMEBREW_UPDATE_TO_TAG.Mike McQuaid
This makes the code easier to follow rather than having to know HOMEBREW_NO_UPDATE_CLEANUP implies not updating to a tag.
2016-09-24update.sh: use GitHub tags API.Mike McQuaid
Otherwise if we've committed to `master` and someone `brew update`s before we cut the tag then they won't be updated to the latest version.
2016-09-24Merge pull request #1121 from MikeMcQuaid/update-stable-branchMike McQuaid
update.sh: always use stable branch for tags.
2016-09-24update.sh: always use stable branch for tags.Mike McQuaid
This avoids creating a new branch that’ll never be deleted for each tag and differentiates between the `master` and `stable` branches.
2016-09-24update.sh: do not restore stable (tag) branchZhiming Wang
Restoring stable branch post-update could lead to unsuspecting users with homebrew.devcmdrun being stuck forever on an old tag. Fixes #1111.
2016-09-23update.sh: only update to semver tags.Mike McQuaid
Otherwise random e.g. `pr-123` tags may cause `brew update` to update to the wrong version.
2016-09-22update.sh: don't print "checkout branch" message.Mike McQuaid
It’ll only get printed for people getting updated to tags now and these are people who haven’t run a `dev-cmd` so we want to air on the side of telling them less stuff that will confuse them and assume people who have manually made another `git` branch will know how to get back to it.
2016-09-21update.sh: tweak tag handling.Mike McQuaid
- Don't let the `UPSTREAM_TAG` variable bleed into future repository checks. - Even if the tag branch is an ancestor of the tag ensure that it's forced back to the tag anyway.
2016-09-21update.sh: allow forcing tag update.Mike McQuaid
To test the tag update functionality allow setting `HOMEBREW_UPDATE_TO_TAG`.
2016-09-21update.sh: update to latest Homebrew/brew tag.Mike McQuaid
Rather than following every change on `master` let’s have non-developer users (i.e. those who have never run a `dev-cmd` or set `HOMEBREW_DEVELOPER`) update between tags. This provides a fairly natural beta (the `master` branch`) and stable (the tags) approach without restricting us to any particular way of managing our tags.
2016-09-20update.sh: force a full update if we have no tags.Mike McQuaid
2016-09-20update.sh: always fetch tags.Mike McQuaid
We use these for updating people who just follow tags.
2016-09-18Use new "macOS" naming where appropriate.Mike McQuaid
Not quite a mass replacement as I've used OS X and Mac OS X where describing specific older versions and added compatibility methods for things in the DSL.
2016-09-18update.sh: turn origin/branch into a variable.Mike McQuaid
Rather than repeating origin multiple times.
2016-09-17Always run LinkedKegs migration (if needed).Mike McQuaid
Ensure that `brew update` always runs the LinkedKegs migration if needed as it may not have been run by `brew update` if it was using `--preinstall` or a `git pull` etc. Also, if the old paths still exist: just use them instead. Finally, always try to unlink/unpin before link/pin. Fixes https://github.com/Homebrew/homebrew-core/issues/4918.
2016-09-09Merge pull request #896 from MikeMcQuaid/no-chown-usr-localMike McQuaid
Don't require/recommend ownership of /usr/local.
2016-09-09Don't require/recommend ownership of /usr/local.Mike McQuaid
Apple reset this on every OS X major (and some minor) updates and it always proves a painful and unnecessary step. Instead just check the directories we actually care about are writable. This may mean if these directories do not already exist (although they are now created by the installed) that `brew link` will fail and require manual intervention but this seems to be superior for both new and the majority of existing users.
2016-09-08update.sh: don't cleanup on update for developers.Mike McQuaid
We’re defining developers as people who have run a dev-cmd at least once.
2016-09-05Adjust branch change messageAlyssa Ross
2016-09-05Warn when changing branch on updateAlyssa Ross
Closes #877
2016-09-01Merge pull request #801 from MikeMcQuaid/git-shim-realpathMike McQuaid
scm/git: make --homebrew=print-path use realpath.
2016-08-25update.sh: reset pre-stash, die if stash fails.Mike McQuaid
A `git reset --hard` without stashing first risks nuking in-progress work. A `git reset --mixed` should allow stashing to occur more often on e.g. merge conflicts. Fixes #766.
2016-08-25Revert "update: make GIT_EXECUTABLE an absolute path."Mike McQuaid
This reverts commit b6afa228f4974f4af1e8938911e35150aa2991c8 from #778.
2016-08-22update: make GIT_EXECUTABLE an absolute path.Mike McQuaid
Otherwise it can end up as e.g. `bin/git` which then breaks when we `cd` to another directory and try to run it.
2016-08-17Fix minor issues in command help text formattingMartin Afanasjew
- Inconsistent or unneeded indentation - Missing or superfluous empty lines - Missing or wrongly formatted arguments in command summary - Missing punctuation
2016-08-14Merge pull request #689 from MikeMcQuaid/update-forceMike McQuaid
update: add --force argument.
2016-08-12update: add --force argument.Mike McQuaid
Add a `brew update --force` to side-step all of the clever optimisations we have to detect if an update is unnecessary. That means if those optimisations go wrong in future we can tell people just to run this single command. This would have been a useful workaround for the issue fixed in 985c672.
2016-08-11update.sh: prevent overwriting UPSTREAM_BRANCH.Mike McQuaid
UPSTREAM_BRANCH was being used both as a loop variable name and name for the upstream branch for HOMEBREW_REPOSITORY. This meant that the variable names were overwritten which prevented update. Closes #693.
2016-08-11update.sh: further tweak update fix.Mike McQuaid
2016-08-11update.sh: check upstream SHA prefetch not local.Mike McQuaid
Otherwise this can prevent taps from being updated as expected.
2016-08-10update.sh: all configurable HOMEBREW_AUTO_UPDATE_SECS.Mike McQuaid
2016-08-10Tweak HOMEBREW_NO_AUTO_UPDATE handling.Mike McQuaid
This can just live in `brew.sh` and then it doesn’t need repeated in all the other places.
2016-08-10update.sh: further speed up `brew update`.Mike McQuaid
Tweak the logic further to make the no-op case even faster. Before: ``` brew update 1.10s user 1.05s system 92% cpu 2.325 total brew update --preinstall 0.60s user 0.77s system 96% cpu 1.433 total ``` After: ``` brew update 0.60s user 0.34s system 83% cpu 1.132 total brew update --preinstall 0.29s user 0.24s system 62% cpu 0.860 total ``` These times are now fast enough to avoid any further special-casing for `--preinstall`, roll it out to users by default and not print a message unless we've actually found some updates.
2016-08-09update: suppress warning about missing FETCH_HEADMartin Afanasjew
Fixes #671.
2016-08-09update: don't recheck taps checked in the last 1m.Mike McQuaid
This is less than ideal but it gets the time on my machine down from ~6s to ~2s when checking no taps. It still shows that we're doing way more in `update.sh` than we need to be doing but that's a future PR.
2016-08-08cmd/update.sh: fix style inconsistenciesMartin Afanasjew
2016-08-02update-report: allow Casks migration to formulae.AnastasiaSulyagina
Closes #588. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-07-15update.sh: fix Git path.Mike McQuaid
Closes https://github.com/Homebrew/brew/issues/519 Closes https://github.com/Homebrew/homebrew-core/issues/3029
2016-07-15brew.{rb,sh}: move to Library/Homebrew. (#506)Mike McQuaid
2016-07-15ENV: move to new paths. (#507)Mike McQuaid
Move some stuff formerly in `Library/ENV` around: - Move `Library/ENV/$XCODE_VERSION` to `Library/Homebrew/env/super` as they are all superenv wrappers and all symlinks to the same version. We never needed the "separate shims for separate versions" functionality and it just adds confusion. - Move `Library/ENV/pkgconfig` to `Library/Homebrew/env/pkgconfig` to get more things under `Library/Homebrew` - Move `Library/ENV/scm` to `Library/scm` as these wrappers are not actually used by or related to superenv (or stdenv) in any way.
2016-07-14various: don't assume non-OS X == Linux.Xu Cheng