http://drupal.org/project/provision_git has borrowed some code from us and could be a nice place to move the drush code to.

I've opend a companion issue in their queue: #1548966: Collaborate with hosting_site_git ?

Comments

jon pugh’s picture

There are two issues I created as feature requests that will help on this:
#1561536: Pull from platform or site directory and #1561540: Pull git submodules if there are any.

I don't use submodules and won't be using hosting_site_git.module, so unfortunately I won't have much time to commit to these patches, but I am happy to have some collaborators!

helmo’s picture

Status: Active » Needs review
StatusFileSize
new3.11 KB

I've started working on this.

My initial hope was the hosting_site_git could get rid of the it's drush.inc (hosting_site_git.drush.inc)
But that's not realistic. I had to add a pre hook for the reset option and a post hook for verify.

And we also still have the checkout and clone commands.

jon pugh’s picture

Now that #1561536 is done...

I think you can remove your drush.inc if you use the hook_post_hosting_TASK_TYPE_task() to add a verify task after the pull code task is completed...

I have to think more about what else you might need...

helmo’s picture

Thanks, I'll look into it.

helmo’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

Committed to 6.x-2.x

helmo’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.