This repository has been archived by the owner. It is now read-only.

Error: Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master #49006

Closed
pascalandy opened this Issue Feb 9, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@pascalandy

Hey guys, if this can help.

Cheers!

Error: Failure while executing: git pull --quiet origin refs/heads/master:refs/remotes/origin/master
Pascals-MacBook-Pro:~ pascalandy$ sudo brew update
Password:
Error: undefined method `new' for Patch:Module
Please report this bug:
    https://git.io/brew-troubleshooting
/usr/local/Library/Homebrew/patch.rb:115:in `initialize'
/usr/local/Library/Homebrew/patch.rb:18:in `new'
/usr/local/Library/Homebrew/patch.rb:18:in `create'
/usr/local/Library/Homebrew/software_spec.rb:168:in `patch'
/usr/local/Library/Homebrew/formula.rb:1910:in `block in patch'
/usr/local/Library/Homebrew/formula.rb:1910:in `each'
/usr/local/Library/Homebrew/formula.rb:1910:in `patch'
/usr/local/Library/Formula/a2ps.rb:19:in `<class:A2ps>'
/usr/local/Library/Formula/a2ps.rb:1:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:23:in `module_eval'
/usr/local/Library/Homebrew/formulary.rb:23:in `load_formula'
/usr/local/Library/Homebrew/formulary.rb:36:in `load_formula_from_path'
/usr/local/Library/Homebrew/formulary.rb:85:in `load_file'
/usr/local/Library/Homebrew/formulary.rb:76:in `klass'
/usr/local/Library/Homebrew/formulary.rb:72:in `get_formula'
/usr/local/Library/Homebrew/formulary.rb:207:in `factory'
/usr/local/Library/Homebrew/cmd/update.rb:204:in `block in report'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `each_line'
/usr/local/Library/Homebrew/cmd/update.rb:190:in `report'
/usr/local/Library/Homebrew/cmd/update.rb:24:in `update'
/usr/local/Library/brew.rb:124:in `<main>'
@DomT4

This comment has been minimized.

Show comment
Hide comment
@DomT4

DomT4 Feb 9, 2016

Contributor

Please brew update again and see if it persists. I suspect it won't.

Contributor

DomT4 commented Feb 9, 2016

Please brew update again and see if it persists. I suspect it won't.

@pascalandy

This comment has been minimized.

Show comment
Hide comment
@pascalandy

pascalandy Feb 10, 2016

I confirm. It's now running smoothly.

Thanks
Pascal

I confirm. It's now running smoothly.

Thanks
Pascal

@pascalandy pascalandy closed this Feb 10, 2016

@jmevalentin

This comment has been minimized.

Show comment
Hide comment
@jmevalentin

jmevalentin Feb 20, 2016

@DomT4, I have a similar error which is persisting after several tries.
I get the following:

Error: Failure while executing: git pull --ff --no-rebase --quiet origin refs/heads/master:refs/remotes/origin/master

It's always after these last few lines appear:

Library/Formula/utf8proc.rb
Library/Formula/vamp-plugin-sdk.rb
Library/Formula/vapoursynth.rb
Library/F

Thoughts?

@DomT4, I have a similar error which is persisting after several tries.
I get the following:

Error: Failure while executing: git pull --ff --no-rebase --quiet origin refs/heads/master:refs/remotes/origin/master

It's always after these last few lines appear:

Library/Formula/utf8proc.rb
Library/Formula/vamp-plugin-sdk.rb
Library/Formula/vapoursynth.rb
Library/F

Thoughts?

@jmevalentin

This comment has been minimized.

Show comment
Hide comment

The suggestion by @kevin under the solution here helped: http://stackoverflow.com/questions/14113427/brew-update-failed

@DomT4

This comment has been minimized.

Show comment
Hide comment
@DomT4

DomT4 Feb 20, 2016

Contributor

Aye. In those situations, if you don't care about keeping the changes the solution is almost universally:

git fetch && git reset --hard origin/master
Contributor

DomT4 commented Feb 20, 2016

Aye. In those situations, if you don't care about keeping the changes the solution is almost universally:

git fetch && git reset --hard origin/master

@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.