Skip to content
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

The Master repository is not a git repository #6302

Closed
af-fess opened this issue Dec 13, 2016 · 2 comments
Closed

The Master repository is not a git repository #6302

af-fess opened this issue Dec 13, 2016 · 2 comments

Comments

@af-fess
Copy link

af-fess commented Dec 13, 2016

Report

What did you do?

$ sudo gem install cocoapods
Fetching: cocoapods-1.1.1.gem (100%)
Successfully installed cocoapods-1.1.1
Parsing documentation for cocoapods-1.1.1
Installing ri documentation for cocoapods-1.1.1
1 gem installed

What did you expect to happen?

~/.cocoapods should contain .git

What happened instead?

~/.cocoapods has only repos folder

$ pod setup
Setting up CocoaPods master repo
fatal: Not a git repository (or any of the parent directories): .git
[!] The `master` repo is not a git repo.

CocoaPods Environment

ℹ Please replace this with the output of pod env.

Stack

   CocoaPods : 1.1.1
        Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
    RubyGems : 2.0.14.1
        Host : Mac OS X 10.12.1 (16B2555)
       Xcode : 8.1 (8B62)
         Git : git version 2.9.3 (Apple Git-75)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master -  @ fatal: Not a git repository (or any of the parent directories): .git

Installation Source

Executable Path: /usr/local/bin/pod

Plugins

cocoapods-deintegrate : 1.0.1
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.1.1
cocoapods-try         : 1.1.0
@endocrimes
Copy link
Member

~/.cocoapods is not supposed to be a git repository, ~/.cocoapods/repos is a directory which contains Sources which may be git repositories.

It looks like your issue is that ~/.cocoapods/repos/master is not a git repository, and you should probably run rm -rf ~/.cocoapods/repos/master && pod setup

@endocrimes endocrimes changed the title Cocoapods doesn't contain .git The Master repository is not a git repository Dec 13, 2016
@af-fess
Copy link
Author

af-fess commented Dec 13, 2016

Thank you, worked

@af-fess af-fess closed this as completed Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants