Since Acquia Cloud hosted sites don't have .git directory the git support is not working.

Add Acquia post-code-based deploys to have release information.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

e0ipso’s picture

First patch attempt

e0ipso’s picture

FileSize
8.45 KB

Slight improvement in documentation.

deviantintegral’s picture

  1. +++ b/README.txt
    @@ -49,6 +50,18 @@ overridden in settings.php, but the most common three are:
    +will need to set that accordingly in your settings.php.
    

    I'm not sure about this. I think it's automatic on Acquia environments.

  2. +++ b/environment_indicator.install
    @@ -63,6 +63,70 @@ function environment_indicator_schema() {
    +        // If there is no value in the releas variable it can mean that the hook
    

    releas

  3. +++ b/environment_indicator.module
    @@ -559,3 +551,34 @@ function command_exists ($command) {
    + *   Return TRUE if the hook sacript has been found.
    

    sacript

  4. +++ b/samples/environment-indicator.sh
    @@ -0,0 +1,22 @@
    +    drush @$site.$target_env vset environment_indicator_remote_release.$target_env $source_branch
    

    Is it possible for us to get the commit hash if we're coming from a branch as well?

e0ipso’s picture

FileSize
8.4 KB

Thanks @deviantintegral, here is a patch with the suggested updates.

As per 4. there is no such information in the post deploy code hook. See https://github.com/acquia/cloud-hooks/blob/master/samples/post-code-depl...

elliotttf’s picture

Status: Active » Reviewed & tested by the community

+1 this looks good to me.

e0ipso’s picture

This was committed in c3e713a.

Many thanks for contributing.

e0ipso’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

somatics’s picture

I'm unclear on the resolution here. We're hosted on Acquia Cloud. Does the resolution here enable the module to show the Git branch in the environment indicator bar? If so, how do we implement this? Do we have to patch something, or has this been put in a dev release? We are running the latest dev version of this module and it doesn't show the Git info.

e0ipso’s picture

For other people getting in here using the search, please see more detailed instructions in the module help an in README.txt. Right now this feature is only included in 7.x-2.x-dev.