aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2016-04-02git: check homebrew/core existence before installing brewed gitXu Cheng
2016-04-02--version/config: show core tap informationXu Cheng
2016-04-02audit/test-bot/pull: fix for core/formula separationXu Cheng
All formulae are in taps now.
2016-04-02update-report: update for core/formula separationXu Cheng
Update the report logic, since now all formulae are in the taps.
2016-04-02remove migrate_tapsXu Cheng
We don't need to migrate the tapped formulae from symlink-based to directory-based structure any more. Instead, we add core tap install check for `brew update-report` which will be invoked by `brew update`.
2016-04-02various: Homebrew/core is the core tapXu Cheng
Also make `Homebrew/homebrew` as an alias of this tap to keep backward compatibility.
2016-03-28utils, gist-logs: improve/fix credential handling.Mike McQuaid
The API used (`Net::HTTP::Post`) does not handle basic authentication credentials in the same way as `open` so fix both cases so they work. Also, do some general usability tweaks to point out to people what could be wrong with their tokens or credentials to help them debug. Closes Homebrew/homebrew#50410. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-03-24--repository: support to show tap pathXu Cheng
This can become handy when we separate core code and formulae. For example, we could use `cd $(brew --repo homebrew/core)` to go to core tap path. Closes Homebrew/homebrew#50346. Signed-off-by: Xu Cheng <xucheng@me.com>
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-20Revert "brew fetch: only include sha256 in output"Xu Cheng
This reverts commit 0b38f9b286bc61e2b2d2232f80ea8ebc5909fb07.
2016-03-19Improve error message for invalid regex to searchSam McTaggart
Fixes https://github.com/Homebrew/homebrew/issues/50131 This commit removes the error backtrace and improves the error message if a bad regexp is passed to `brew search`. Closes Homebrew/homebrew#50173. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-03-14Revert "test-bot: better xml character filtering"Xu Cheng
This reverts commit 7032591bd44a8f50aaa55574ac97cd5cb7261460 and commit 946c6deb4b5168ad2ec15e62aa6e81181e9e246c.
2016-03-14test-bot: fix encoding caused by UTF-8 regexXu Cheng
2016-03-14test-bot: better xml character filteringXu Cheng
Ref: - http://www.w3.org/TR/xml/#charsets - http://stackoverflow.com/a/14323524 Closes Homebrew/homebrew#50092. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-14brew fetch: only include sha256 in outputAndrew Janke
Closes Homebrew/homebrew#50067. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-03-14audit: fix crash when HOMEBREW_NO_GITHUB_API is setBaptiste Fontaine
Running brew audit --strict --online on a formula with a GitHub homepage/url would crash if HOMEBREW_NO_GITHUB_API is set because GitHub.repository returns `nil` and the audit code assumes it always returns a hash. Closes Homebrew/homebrew#50054. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-03-13brew pull: fix encoding of `brew info --json` outputAndrew Janke
Fixes Homebrew/homebrew#49757 Closes Homebrew/homebrew#49775 Closes Homebrew/homebrew#49947. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-03-11brew pull: enable blocking bintray publish by setting content-typeAndrew Janke
Looks like the bintray publish_wait_for_secs was being ignored because the content type wasn't being set, so it defaulted to x-www-form-urlencoded instead of application/json. Changes the timeout to 0 to preserve current non-blocking behavior, which we want in case multiple formulae are being updated. Closes Homebrew/homebrew#49951. Signed-off-by: Andrew Janke <andrew@apjanke.net>
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-08Set HOMEBREW_API_TOKEN from Git when available.Mike McQuaid
As requested in Homebrew/homebrew#46578. Falls back to existing functionality. Closes Homebrew/homebrew#46578. Closes Homebrew/homebrew#49846. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
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-03-07test-bot: fix wrong tap argument checkXu Cheng
2016-03-07test-bot: check if current repo is a tapXu Cheng
If it's not a tap, we test formula on CoreTap. This can happen if we run test on a fork, e.g. Linuxbrew or future Homebrew/brew. Closes Homebrew/homebrew#49844. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-07tap various commands: use tap name method.Xu Cheng
Instead of hard coded `Homebrew/homebrew`
2016-03-07rename CoreFormulaRepository to CoreTapXu Cheng
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
2016-02-28test-bot: make bottle stats visible by defaultTim D. Smith
Closes Homebrew/homebrew#49620.
2016-02-26tap: support --quieter flagXu Cheng
Closes Homebrew/homebrew#49551. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-26various: use Tap abstractionXu Cheng
formula_rename and tap_migrations are now handled inside Tap. Closes Homebrew/homebrew#49549. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-25remove update-rubyXu Cheng
Closes Homebrew/homebrew#49523. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-25update-report: fix new_full_name in reportXu Cheng
2016-02-25update-report: refactoringXu Cheng
* Better variable/class name. `update-report` isn't response to actual update. * Use abstraction offered by Reporter and ReproterHub class. * Failure on one tap won't affect migration preformed by other taps. * Simplify logic and prepare for core/formula separation.
2016-02-25update-report: refactoring ReporterHubXu Cheng
* Better variable/class name. * Remove obsolete update_renamed, this is now handled inside each reporter. * Remove obsolete formula file path to name computation, which is also handled by reporter. * Hide low lever implementation detail to offer better abstraction. Use `add(reporter)` instead of `Hash#update` to add new report.
2016-02-25update-report: use tap inside ReporterXu Cheng
* Avoid tons of unnecessary file path manipulation. Use abstraction offered by Tap class if possible. * Handle formula rename/tap migration inside reporter in per tap basis. * Avoid duplicated computation. * Remove redundant/dead code.
2016-02-23list: exclude .github from unbrewedPaul Phillips
Recently added files polluting brew ls --unbrewed results. Closes Homebrew/homebrew#49456. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
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-16add Tap#formula_file?Xu Cheng
Return true if given path would present a Formula file in this Tap. Accepts both absolute path and relative path (relative to this Tap's path) It offer an abstraction such that caller would not need to worry about low level file system in the tap. It will be used in `brew pull` and `brew update`. Closes Homebrew/homebrew#49191. Signed-off-by: Xu Cheng <xucheng@me.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>
2016-02-13style: update rubocop to 0.37.2Dominyk Tiller
Closes Homebrew/homebrew#49084. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-02-12cmd/update-bash.sh: print message on fetch fail.Mike McQuaid
Closes Homebrew/homebrew#49107. Closes Homebrew/homebrew#49105. Closes Homebrew/homebrew#48267. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-02-12update-bash: don't prompt for passwords.Mike McQuaid
We execute too many `git fetch` at once for this to be useful. Just let them fail instead and make it up to users to setup username/password caching or SSH agents.
2016-02-12pull --bump: add auto-detection of devel bumpsAndrew Janke
Closes Homebrew/homebrew#48472. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-02-11audit: roughly double notability requirements.Mike McQuaid
Closes Homebrew/homebrew#48706.
2016-02-10bottle: do not follow symlink when setting mtimeXu Cheng
Also set atime to mtime, which seems to be a more common practice. Fixes Homebrew/homebrew#49007 Closes Homebrew/homebrew#49027. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-09Audit: Regexp.escape formula namesMisty De Meo
We allow certain special regex characters in formula names, and if those aren't escaped when interpolating them into a regex, they'll be interpreted as special regex characters. This can cause regex compile errors on Ruby 1.8 (for example, with "libxml++3", which has nested match characters), and more subtle matching bugs in general. Refs an issue surfaced in Homebrew/homebrew#48744. Closes Homebrew/homebrew#49005. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>