function drush_config_pull_validate

8.0.x config.drush.inc drush_config_pull_validate($source, $destination)
master config.drush.inc drush_config_pull_validate($source, $destination)

Config pull validate callback

File

commands/core/config.drush.inc, line 761
Provides Configuration Management commands.

Code

function drush_config_pull_validate($source, $destination) {
  if (drush_get_option('safe')) {
    $return = drush_invoke_process($destination, 'core-execute', array('git diff --quiet'), array('escape' => 0));
    if ($return['error_status']) {
      return drush_set_error('DRUSH_GIT_DIRTY', 'There are uncommitted changes in your git working copy.');
    }
  }
}