Cocoapod: Not possible to fast-forward, aborting

1.1k Views Asked by At

It is the content of my podfile:

platform :ios, '7.0'
pod 'RedditKit', '~> 1.3' 

It is placed at the root of my iOS project (i.e. not a workspace)

When I ran pod install I got this error message:

$ pod install
Analyzing dependencies
[!] An error occurred while performing `git pull` on repo `master`.
[!] /usr/bin/git pull --ff-only

fatal: Not possible to fast-forward, aborting.

I have already run gem update --system to update my ruby installation

More information of my cocoapod installation

$ gem which cocoapods
/Users/antkong/.rvm/gems/ruby-2.1.2@global/gems/cocoapods-0.33.1/lib/cocoapods.rb
1

There are 1 best solutions below

1
On BEST ANSWER

It is caused by a bug in libgit2. Details and solution can be found in this bug report https://github.com/CocoaPods/CocoaPods/issues/2213