{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5458","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5458/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5458/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5458/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5458","id":158387815,"number":5458,"title":"Running `bundle exec rake spec` switches away from development branch, changes git remote origin","user":{"login":"benasher44","id":1120429,"avatar_url":"https://avatars.githubusercontent.com/u/1120429?v=3","gravatar_id":"","url":"https://api.github.com/users/benasher44","html_url":"https://github.com/benasher44","followers_url":"https://api.github.com/users/benasher44/followers","following_url":"https://api.github.com/users/benasher44/following{/other_user}","gists_url":"https://api.github.com/users/benasher44/gists{/gist_id}","starred_url":"https://api.github.com/users/benasher44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benasher44/subscriptions","organizations_url":"https://api.github.com/users/benasher44/orgs","repos_url":"https://api.github.com/users/benasher44/repos","events_url":"https://api.github.com/users/benasher44/events{/privacy}","received_events_url":"https://api.github.com/users/benasher44/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/labels/t4:internal","name":"t4:internal","color":"0D00D9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-03T15:03:35Z","updated_at":"2016-06-06T15:24:32Z","closed_at":null,"body":"> ℹ Please fill out this template when filing an issue.\r\n> All lines beginning with an ℹ symbol instruct you with\r\n> what info we expect.  \r\n> Please remove this line and all above before submitting.\r\n\r\n* [x] I've read and understood the [*CONTRIBUTING guidelines and have done my best effort to follow](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md).\r\n\r\n# Report\r\n\r\n## What did you do?\r\n\r\nChecked out my development branch (for this repo) and ran `bundle exec rake spec`\r\n\r\n## What did you expected to happen?\r\n\r\nTests to run on my development branch\r\n\r\n## What happened instead?\r\n\r\nThe tests finished (many failures), and I noticed I'm back on the master branch. If I look at .git/config, origin is set to https://github.com/CocoaPods/Specs.git. I suspect this is happening in one of the specs in spec/functional/command/repo/, but disabling various specs doesn't seem to help (or I'm disabling wrong).\r\n\r\n## CocoaPods Environment\r\n\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.0.1\r\n        Ruby : ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-darwin15.0]\r\n    RubyGems : 2.4.8\r\n        Host : Mac OS X 10.11.5 (15F34)\r\n       Xcode : 7.3.1 (7D1014)\r\n         Git : git version 2.8.3\r\nRuby lib dir : /Users/basher/.rvm/rubies/ruby-2.1.9/lib\r\nRepositories : master - https://github.com/CocoaPods/Specs.git @ b6cd88b9ec1277a5de3f3bb220c39c91c802e364\r\n               ooyala - https://github.com/ooyala/ios-sdk-podspecs.git @ 8a82621cfbb23fb0ddae2a6426cb65f225cb436b\r\n               yelpcorp-yelpspecs - ssh://git@git.yelpcorp.com/ios/YelpSpecs @ b32977d8a83f23fcc7b1ef7a37e96889a39b79a4\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /Users/basher/.rvm/gems/ruby-2.1.9/bin/pod\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\ncocoapods-deintegrate  : 1.0.0\r\ncocoapods-dependencies : 1.0.0.beta.1\r\ncocoapods-plugins      : 1.0.0\r\ncocoapods-search       : 1.0.0\r\ncocoapods-stats        : 1.0.0\r\ncocoapods-trunk        : 1.0.0\r\ncocoapods-try          : 1.0.0\r\ncocoapods_debug        : 0.1.0\r\n```\r\n\r\n## Project that demonstrates the issue\r\n\r\nI haven't added any new tests/specs yet, but my in-progress branch where this is happening is [here](/benasher44/CocoaPods/tree/basher_improved_extension_handling)"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/223992941","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5458#issuecomment-223992941","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5458","id":223992941,"user":{"login":"benasher44","id":1120429,"avatar_url":"https://avatars.githubusercontent.com/u/1120429?v=3","gravatar_id":"","url":"https://api.github.com/users/benasher44","html_url":"https://github.com/benasher44","followers_url":"https://api.github.com/users/benasher44/followers","following_url":"https://api.github.com/users/benasher44/following{/other_user}","gists_url":"https://api.github.com/users/benasher44/gists{/gist_id}","starred_url":"https://api.github.com/users/benasher44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benasher44/subscriptions","organizations_url":"https://api.github.com/users/benasher44/orgs","repos_url":"https://api.github.com/users/benasher44/repos","events_url":"https://api.github.com/users/benasher44/events{/privacy}","received_events_url":"https://api.github.com/users/benasher44/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T15:24:32Z","updated_at":"2016-06-06T15:24:32Z","body":"This happens if you don't have the proper submodules checked out/initialized. `git submodule update --init --recursive` fixed the issue.\r\n\r\nI'm trying to figure out some way to warn/error if you don't have the submodules checked out when running `bundle exec rake spec`. So far, I've come up with just running `git submodule status --recursive` and checking for symbols before the listed shas (as specified in the help for `git submodule status`) in the Rakefile. Thoughts?"}}
{"actor":{"display_login":"benasher44"}}