Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 255f6b4

Browse files
committed
Merge even if last export made no change, because some config exports may have already been committed
1 parent 19fb9d0 commit 255f6b4

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

config_extra.drush.inc

+2-16
Original file line numberDiff line numberDiff line change
@@ -209,22 +209,8 @@ function drush_config_extra_config_merge($alias = '', $config_label = 'sync') {
209209
return FALSE;
210210
}
211211

212-
// Check to see if the export changed any files. If it did not, then
213-
// skip the merge, and process only the config pulled in from the other site.
214-
// TODO: This needs to be a diff against the base commit. In 'git' mode,
215-
// we probably want to just skip this test and always merge. Maybe always do this?
216-
$configuration_path = _drush_cme_get_configuration_path($merge_info);
217-
$result = drush_shell_cd_and_exec($configuration_path, 'git status --porcelain .');
218-
if (!$result) {
219-
return drush_set_error('DRUSH_CONFIG_MERGE_FAILURE', dt("`git status` failed."));
220-
}
221-
$changed_configuration_files = drush_shell_exec_output();
222-
if (empty($changed_configuration_files)) {
223-
drush_log(dt("No configuration changes on !site; no merge necessary.", array('!site' => $merge_info['dev-site'])), 'ok');
224-
}
225-
else {
226-
$result = _drush_cme_merge_local_and_remote_configurations($merge_info);
227-
}
212+
$result = _drush_cme_merge_local_and_remote_configurations($merge_info);
213+
228214
if ($result === FALSE) {
229215
return FALSE;
230216
}

0 commit comments

Comments
 (0)