| Age | Commit message (Collapse) | Author |
|
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>
|
|
Closes Homebrew/homebrew#49107.
Closes Homebrew/homebrew#49105.
Closes Homebrew/homebrew#48267.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
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.
|
|
The output will help to show git is initialized in the first time.
Hence, offer a better UX.
|
|
* Use git function instead of refreshing bash cache on `git` path.
* Better `which_git`:
* Take user's setting of `HOMEBREW_GIT` and `GIT` env variable into
account.
* Always expand git path.
* Only check Xcode installation for OS X.
Closes Homebrew/homebrew#48508.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
* Make sure `.git` directory be deleted at any error. So we won't have a
stale setup.
* Run `git fetch` and `git reset` when initialize git in the first time.
Otherwise, we will get error and merging problem afterwards.
Closes Homebrew/homebrew#48509.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
Otherwise Bash can cache a relative PATH and then get upset when it
changes directory and cannot find it any more.
Closes Homebrew/homebrew#48493.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
This should help to avoid collisions with external commands and other
shell functions in the future and is closer to what we do in Ruby, where
commands are namespaced by being methods of the `Homebrew` module.
|
|
|
|
Remove the executable bit from the file to make it clear it is not
supposed to be executed directly. This should make the shebang line and
the early check also unnecessary.
|
|
Allow people to run this command (so we can ask people to test it)
without having to set `HOMEBREW_DEVELOPER`.
Closes Homebrew/homebrew#48260.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Per @UniqMartin's advice, avoid disabling shellcheck rules.
Closes Homebrew/homebrew#48286.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
Per @UniqMartin's advice, the original code will fail to handle flags
like `-vd`, because once a case is handled, no other cases are evaluate.
|
|
When invoking --simulate-from-current-branch, we shouldn't do any file
manipulation.
|
|
* only set HOMEBREW_UPDATE_BEFORE inside pull instead of fetch.
* fix HOMEBREW_UPDATE_BEFORE/AFTER variable settings. They should be set
to INITIAL_REVISION and CURRENT_REVISION correspondingly.
* avoid unnecessary duplicated shellout.
* remove unused variable.
|
|
|
|
* make sure exit after reset.
* more wide guardian range. We should trap reset_on_interrupt as soon as
we are about to change any files.
* check INITIAL_BRANCH against UPSTREAM_BRANCH
|
|
rename_taps_dir_if_necessary must be performed before actual update.
Otherwise, it will report that `HOMEBREW_UPDAET_BEFORE<REPO_VAR>` is
unset.
|
|
* use HOMEBREW_REPOSITORY instead of HOMEBREW_PREFIX
* better performance:
* update-bash: avoid shellout
* update-report: use strip_prefix and tr
* more robust:
* explicitly handle the case when repo is HOMEBREW_REPOSITORY to avoid
to handle the trailing backslash.
* handle both lower case and upper case when stripping non alpha and
digital characters.
|
|
|
|
|
|
|
|
|
|
This will become the default updater at a later point in the future.
|