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

brew update reporting error #13177

Closed
jerzyk opened this Issue Jul 3, 2012 · 5 comments

Comments

Projects
None yet
4 participants
@jerzyk
Copy link

jerzyk commented Jul 3, 2012

sudenly brew update is reporting errors:

$ brew update
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master

more verbose output:

$ brew update -v
git checkout -q master 
==> git rev-parse -q --verify HEAD
1a81ec617141863d15a3834cdccff02e003e78d0
git config core.autocrlf false 
git pull origin refs/heads/master:refs/remotes/origin/master
Already up-to-date.
==> git rev-parse -q --verify HEAD
1a81ec617141863d15a3834cdccff02e003e78d0
git checkout -q master 
==> git rev-parse -q --verify HEAD
8bd92023d0005d09740ce7fc7800be5a60bcbb29
git config core.autocrlf false 
git pull origin refs/heads/master:refs/remotes/origin/master
From https://github.com/josegonzalez/homebrew-php
 ! [rejected]        master     -> origin/master  (non-fast-forward)
Error: Failure while executing: git pull origin refs/heads/master:refs/remotes/origin/master
@2bits

This comment has been minimized.

Copy link
Contributor

2bits commented Jul 3, 2012

Non fast forward errors deal with changes to files. Did you change any tracked files in your homebrew-php subsystem?

@borrible13th

This comment has been minimized.

Copy link

borrible13th commented Jul 4, 2012

Same problem here! Simple solution - re-tapping josegonzalez/php:

$brew untap josegonzalez/php

Test update, error gone:

$brew update

Tap again and test it:

$brew tap josegonzalez/php
...
$brew update

No errors! :)

@jerzyk

This comment has been minimized.

Copy link
Author

jerzyk commented Jul 4, 2012

yes, but still.. question is why this happen and how to avoid this in future?

@borrible13th

This comment has been minimized.

Copy link

borrible13th commented Jul 4, 2012

@mxcl

This comment has been minimized.

Copy link
Member

mxcl commented Aug 4, 2012

brew update now only aborts that tap and not the whole process: a732c9b.

@mxcl mxcl closed this Aug 4, 2012

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016

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