New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide better errors around git commands on Specs failing #2213

Closed
rzaccone opened this Issue May 31, 2014 · 4 comments

Comments

Projects
None yet
3 participants
@rzaccone
Copy link

rzaccone commented May 31, 2014

I was trying to install my first pod using "pod install". The process aborted with the error

Updating spec repo `master`
  $ /usr/bin/git pull --ff-only
  fatal: Not possible to fast-forward, aborting.
[!] An error occurred while performing `git pull` on repo `master`.
[!] /usr/bin/git pull --ff-only

fatal: Not possible to fast-forward, aborting.

After several days of trying, I finally ran the following commands which fixed the problem.

pod repo remove master
pod setup

pod install should provide a better error message so that people can recover from this problem more easily.

Also, the Cocoapods webpage suggests uninstalling and reinstalling cocoapods as a possible fix to problems. Part of the uninstall process should be

sudo rm -rf ~/.cocoapods

which would have also fixed this problem.

@orta

This comment has been minimized.

Copy link
Member

orta commented May 31, 2014

I think you got hit by the Git bug we encountered in january, http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/

@orta orta closed this May 31, 2014

@rzaccone

This comment has been minimized.

Copy link

rzaccone commented May 31, 2014

You're right, this is probably the cause. I'm suggesting that there should be better error reporting and better instructions on how to uninstall cocoapods, so that no one else needs to spend so much time figuring this out. There is nothing in the error message that indicates this might be the problem.

Rick

On May 31, 2014, at 05-31, 10:50 AM, Orta notifications@github.com wrote:

I think you got hit by the Git bug we encountered in january, http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/


Reply to this email directly or view it on GitHub.

@orta orta reopened this May 31, 2014

@orta orta changed the title Problem with "pod install" Provide better errors around git commands on Specs failing May 31, 2014

@orta

This comment has been minimized.

Copy link
Member

orta commented May 31, 2014

Cool, agreed, I've renamed and cleaned up the original post, and moved it into discussion to see what other devs make of it.

@segiddins

This comment has been minimized.

Copy link
Member

segiddins commented May 31, 2014

This was actually already done! #2076

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