banago / PHPloy

PHPloy - Incremental Git (S)FTP deployment tool that supports multiple servers, submodules and rollbacks.
http://wplancer.com/phploy/
1.42k stars 197 forks source link

Invalid symmetric difference expression error #122

Closed bobrocke closed 9 years ago

bobrocke commented 9 years ago

With submodules and changes to be deployed in user/themes/materialize, I get an Invalid symmetric difference error:

RockBox:www.grav.dev bob$ phploy --submodules

---------------------------------------------------
|              PHPloy v3.0.19-stable              |
---------------------------------------------------

Scanning repository...
   Found 2 submodules.
   Found submodule user/plugins/materializer.
      Scanning for sub-submodules...
   Found submodule user/themes/materialize.
      Scanning for sub-submodules...

SERVER: production
   No files to upload.

SUBMODULE: user/plugins/materializer
fatal: Invalid symmetric difference expression e23ca4f9c87afafbdf153b9fe6e76dc660a25e07...HEAD
   No files to upload.

SUBMODULE: user/themes/materialize
fatal: Invalid symmetric difference expression e23ca4f9c87afafbdf153b9fe6e76dc660a25e07...HEAD
   No files to upload.

----------------[ 0.00B Deployed ]----------------
banago commented 9 years ago

Yep, some other guys reported this. I'll check this too over the weekend. Seems like an issue I've caused.

banago commented 9 years ago

@bobrocke this is finally fixed - thanks for your patience. To make it work, you will have to manually delete the .revision file from the deployed submodules in your server, since that contains the wrong revision, basically the parent repo revision. Please let me know how it goes. Happy deploying!

bobrocke commented 9 years ago

I no longer get the error, but phploy -s production --submodule does not replace the submodule .revision files that I deleted, nor upload changes to those submodules.

banago commented 9 years ago

@bobrocke you need to use --submodules in plural. I had to test it to find out too - subtle difference :smile:

bobrocke commented 9 years ago

Yep. --submodules fixed me right up. Thanks! It's working well now.