scttnlsn / dandelion

Incremental Git repository deployment.
http://scttnlsn.github.io/dandelion
MIT License
738 stars 60 forks source link

Error when deploying files from different repo #62

Closed aderaaij closed 10 years ago

aderaaij commented 10 years ago

edit: My description wasn't fully complete. I actually clone a base repo and change the remote. The files I add seem to have been in the base repo before. When I clone the base repo, remove the git files and up them to a new remote I seem to have no troubles at all. It seems to have something to do with the cache or so, but running git rm -r --cached . brings no avail

Whenever I start a new repo and include / copy some files from another repo (mind you, only some files, not the whole repo, so it's not included as submodule) dandelion deploy throws out errors. As soon as I make a change in these files, commit, push them and deploy again, everything works fine. Also, if I fetch packages through other methods (composer) everything works without a problem. I've got several repo's up and running fine with Dandelion.

I can find no difference in ownership, group, file permissions or encoding in between these files, so any ideas what the problem could be?

This is one of the errors I get:

/Users/User/.rvm/gems/ruby-2.0.0-p353/gems/grit-2.5.0/lib/grit/git-ruby/internal/pack.rb:135:inblock (2 levels) in init_pack': pack /Applications/XAMPP/xamppfiles/htdocs/clients/test/.git/objects/pack/pack-8217a64738279ecde2f285bc96f324489b9ecc2e.pack has discontinuous index 1 (Grit::GitRuby::Internal::PackFormatError)`

scttnlsn commented 10 years ago

This is potentially a duplicate of https://github.com/scttnlsn/dandelion/issues/60

scttnlsn commented 10 years ago

Please try the latest beta version: dandelion install --version 0.4.0.beta2

scttnlsn commented 10 years ago

Please reopen if this is still an issue with v0.4.0.