Update references to masterbrew
I left update_from_masterbrew! as a historical reference.
This commit is contained in:
parent
a8d6a695bc
commit
3d421c8649
@ -97,8 +97,8 @@ def info name
|
|||||||
user=''
|
user=''
|
||||||
user=`git config --global github.user`.chomp if system "which git > /dev/null"
|
user=`git config --global github.user`.chomp if system "which git > /dev/null"
|
||||||
user='mxcl' if user.empty?
|
user='mxcl' if user.empty?
|
||||||
# FIXME it would be nice if we didn't assume the default branch is masterbrew
|
# FIXME it would be nice if we didn't assume the default branch is master
|
||||||
history="http://github.com/#{user}/homebrew/commits/masterbrew/Library/Formula/#{Formula.path(name).basename}"
|
history="http://github.com/#{user}/homebrew/commits/master/Library/Formula/#{Formula.path(name).basename}"
|
||||||
|
|
||||||
exec 'open', history if ARGV.flag? '--github'
|
exec 'open', history if ARGV.flag? '--github'
|
||||||
|
|
||||||
|
@ -514,8 +514,8 @@ class BeerTasting <Test::Unit::TestCase
|
|||||||
def test_updater_update_homebrew_without_any_changes
|
def test_updater_update_homebrew_without_any_changes
|
||||||
outside_prefix do
|
outside_prefix do
|
||||||
updater = RefreshBrewMock.new
|
updater = RefreshBrewMock.new
|
||||||
updater.in_prefix_expect("git checkout masterbrew")
|
updater.in_prefix_expect("git checkout master")
|
||||||
updater.in_prefix_expect("git pull origin masterbrew", "Already up-to-date.\n")
|
updater.in_prefix_expect("git pull origin master", "Already up-to-date.\n")
|
||||||
|
|
||||||
assert_equal false, updater.update_from_masterbrew!
|
assert_equal false, updater.update_from_masterbrew!
|
||||||
assert updater.expectations_met?
|
assert updater.expectations_met?
|
||||||
@ -526,9 +526,9 @@ class BeerTasting <Test::Unit::TestCase
|
|||||||
def test_updater_update_homebrew_without_formulae_changes
|
def test_updater_update_homebrew_without_formulae_changes
|
||||||
outside_prefix do
|
outside_prefix do
|
||||||
updater = RefreshBrewMock.new
|
updater = RefreshBrewMock.new
|
||||||
updater.in_prefix_expect("git checkout masterbrew")
|
updater.in_prefix_expect("git checkout master")
|
||||||
output = fixture('update_git_pull_output_without_formulae_changes')
|
output = fixture('update_git_pull_output_without_formulae_changes')
|
||||||
updater.in_prefix_expect("git pull origin masterbrew", output)
|
updater.in_prefix_expect("git pull origin master", output)
|
||||||
|
|
||||||
assert_equal true, updater.update_from_masterbrew!
|
assert_equal true, updater.update_from_masterbrew!
|
||||||
assert !updater.pending_formulae_changes?
|
assert !updater.pending_formulae_changes?
|
||||||
@ -539,9 +539,9 @@ class BeerTasting <Test::Unit::TestCase
|
|||||||
def test_updater_update_homebrew_with_formulae_changes
|
def test_updater_update_homebrew_with_formulae_changes
|
||||||
outside_prefix do
|
outside_prefix do
|
||||||
updater = RefreshBrewMock.new
|
updater = RefreshBrewMock.new
|
||||||
updater.in_prefix_expect("git checkout masterbrew")
|
updater.in_prefix_expect("git checkout master")
|
||||||
output = fixture('update_git_pull_output_with_formulae_changes')
|
output = fixture('update_git_pull_output_with_formulae_changes')
|
||||||
updater.in_prefix_expect("git pull origin masterbrew", output)
|
updater.in_prefix_expect("git pull origin master", output)
|
||||||
|
|
||||||
assert_equal true, updater.update_from_masterbrew!
|
assert_equal true, updater.update_from_masterbrew!
|
||||||
assert updater.pending_formulae_changes?
|
assert updater.pending_formulae_changes?
|
||||||
@ -584,7 +584,7 @@ update_git_pull_output_without_formulae_changes: |
|
|||||||
remote: Total 39 (delta 20), reused 0 (delta 0)
|
remote: Total 39 (delta 20), reused 0 (delta 0)
|
||||||
Unpacking objects: 100% (39/39), done.
|
Unpacking objects: 100% (39/39), done.
|
||||||
From git://github.com/mxcl/homebrew
|
From git://github.com/mxcl/homebrew
|
||||||
* branch masterbrew -> FETCH_HEAD
|
* branch master -> FETCH_HEAD
|
||||||
Updating 14ef7f9..f414bc8
|
Updating 14ef7f9..f414bc8
|
||||||
Fast forward
|
Fast forward
|
||||||
Library/Homebrew/ARGV+yeast.rb | 35 ++--
|
Library/Homebrew/ARGV+yeast.rb | 35 ++--
|
||||||
@ -604,7 +604,7 @@ update_git_pull_output_with_formulae_changes: |
|
|||||||
remote: Total 39 (delta 20), reused 0 (delta 0)
|
remote: Total 39 (delta 20), reused 0 (delta 0)
|
||||||
Unpacking objects: 100% (39/39), done.
|
Unpacking objects: 100% (39/39), done.
|
||||||
From git://github.com/mxcl/homebrew
|
From git://github.com/mxcl/homebrew
|
||||||
* branch masterbrew -> FETCH_HEAD
|
* branch master -> FETCH_HEAD
|
||||||
Updating 14ef7f9..f414bc8
|
Updating 14ef7f9..f414bc8
|
||||||
Fast forward
|
Fast forward
|
||||||
Library/Contributions/brew_bash_completion.sh | 6 +-
|
Library/Contributions/brew_bash_completion.sh | 6 +-
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
class RefreshBrew
|
class RefreshBrew
|
||||||
CHECKOUT_COMMAND = 'git checkout masterbrew'
|
CHECKOUT_COMMAND = 'git checkout master'
|
||||||
UPDATE_COMMAND = 'git pull origin masterbrew'
|
UPDATE_COMMAND = 'git pull origin master'
|
||||||
REVISION_COMMAND = 'git log -l -1 --pretty=format:%H'
|
REVISION_COMMAND = 'git log -l -1 --pretty=format:%H'
|
||||||
GIT_UP_TO_DATE = 'Already up-to-date.'
|
GIT_UP_TO_DATE = 'Already up-to-date.'
|
||||||
UPDATED_FORMULA = %r{^\s+Library/Formula/(.+?)\.rb\s}
|
UPDATED_FORMULA = %r{^\s+Library/Formula/(.+?)\.rb\s}
|
||||||
|
2
bin/brew
2
bin/brew
@ -55,7 +55,7 @@ begin
|
|||||||
# please improve it! :)
|
# please improve it! :)
|
||||||
exec 'mate', *Dir["#{HOMEBREW_PREFIX}/Library/*"]<<
|
exec 'mate', *Dir["#{HOMEBREW_PREFIX}/Library/*"]<<
|
||||||
"#{HOMEBREW_PREFIX}/bin/brew"<<
|
"#{HOMEBREW_PREFIX}/bin/brew"<<
|
||||||
"#{HOMEBREW_PREFIX}/README"
|
"#{HOMEBREW_PREFIX}/README*"
|
||||||
else
|
else
|
||||||
exec_editor *ARGV.formulae.collect {|f| f.path}
|
exec_editor *ARGV.formulae.collect {|f| f.path}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user