adamwaite / iOS-Build-Kit

☠️ BuildKit is a modular command line interface for automating iOS project builds. Bundled build tasks include: Increment app version • Xcode build • Overlay version number on icon files • Run unit tests • Create .ipa artefact.
MIT License
568 stars 54 forks source link

configure.rb trashes git repo #3

Closed rdclark closed 10 years ago

rdclark commented 11 years ago

When you first clone XcodeProject, the repo is fine. But after running ruby configure.rb, the repo is broken:

$ git st error: bad index file sha1 signature fatal: index file corrupt

Unfortunately, the fix suggested on Stack Overflow also fails:

$ rm -f .git/index $ git reset error: packfile .git/objects/pack/pack-a7d66cdfc1725b675ce54100f91ebb0ac2d3a0b7.pack does not match index warning: packfile .git/objects/pack/pack-a7d66cdfc1725b675ce54100f91ebb0ac2d3a0b7.pack cannot be accessed error: packfile .git/objects/pack/pack-a7d66cdfc1725b675ce54100f91ebb0ac2d3a0b7.pack does not match index warning: packfile .git/objects/pack/pack- a7d66cdfc1725b675ce54100f91ebb0ac2d3a0b7.pack cannot be accessed error: packfile .git/objects/pack/pack-a7d66cdfc1725b675ce54100f91ebb0ac2d3a0b7.pack does not match index warning: packfile .git/objects/pack/pack-a7d66cdfc1725b675ce54100f91ebb0ac2d3a0b7.pack cannot be accessed fatal: Could not parse object 'HEAD'.

It's probably a global rename gone too far.

adamwaite commented 11 years ago

Hi, thanks for the heads up. Apologies for the delayed response, just got back from a holiday in California, I'll take a look later on.

adamwaite commented 10 years ago

I've removed the .git folder in configure.rb. I think it should be up to the user whether or not they want to create a new repo or not with their new app project. As a user that wants to work on the 'XcodeProject' project, they shouldn't need to run configure.rb anyway. Thanks.