aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/update.sh
AgeCommit message (Collapse)Author
2016-04-02git: check homebrew/core existence before installing brewed gitXu Cheng
2016-03-21update: use git from ENV/scm/gitXu Cheng
The idea is to let `scm/git` to handle all of git location resolution throughout Homebrew codebase. Closes Homebrew/homebrew#50116. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-11Fix `brew update` user agent.Mike McQuaid
This needs to be `Homebrew $HOMEBREW_VERSION` so we can be adequately filtered. Closes Homebrew/homebrew#49961. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-03-09update: shallow fetch for git_init_if_necessaryXu Cheng
Users shouldn't need to fetch all of git history. Closes Homebrew/homebrew#49903. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-09Revert "update: checkout branch unconditionally"Xu Cheng
This reverts commit 0525c9eeea27eff1a6de05e7a01ec268ae07437b. Which breaks `brew update --rebase`.
2016-03-08update: checkout branch unconditionallyXu Cheng
2016-03-08update: passing --force to git fetchXu Cheng
Per document: > -f, --force > When git fetch is used with <rbranch>:<lbranch> refspec, it refuses > to update the local branch <lbranch> unless the remote branch > <rbranch> it fetches is a descendant of <lbranch>. This option > overrides that check.
2016-02-22update: better handle merge conflicts.Mike McQuaid
When there are merge conflicts we fail pretty hard. This is still possible after this commit but at least we've given Git enough pointers to make it less likely. Closes Homebrew/homebrew#49299. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-19update: fix fork bomb caused by `brew update --help`Xu Cheng
Fixes Homebrew/homebrew#49334. Closes Homebrew/homebrew#49343. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-18update: always checkout master.ilovezfs
This should help to prevent situations where a user accidentally ends up "stranded" in a branch indefinitely. Additionally, the stash is never popped automatically at the end of a successful update, but the stash-pop message is printed if something is stashed. When an interrupt occurs, the original behavior is still in place (switch back to the old branch and revision, and pop the stash), though this could be changed as well. This commit modifies the behavior of both `brew update` and "update-bash.sh" in the manner described above. The idea for this approach is from Mike McQuaid. Issue Homebrew/homebrew#48812 Closes Homebrew/homebrew#48993. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-18update: use GitHub API to avoid unneeded fetches.Mike McQuaid
Check to see if `HEAD` is the same as what we have locally. If it is: don't bother to `git fetch`. Closes Homebrew/homebrew#47888. Closes Homebrew/homebrew#49219. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-15Promote update-bash to the default updater.Mike McQuaid
Also, rename the existing updater to `update-ruby` to allow using as a fallback. It will eventually be removed. Closes Homebrew/homebrew#49109. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>